Hi,
I'm absolutely newbie to both Python and also Spyder, and appreciate your
help. I'm using Spyder, some times it randomly gives the following error:

'import sitecustomize' failed; use -v for traceback

while, I'm not importing "sitecustomize" and have no idea why it is being
imported, this happens even if my code is as simple as following:

import sys
import pdb
#import traceback
import numpy as np
#import scipy as sp

#import cmath


class GaussianProcess(object):
    def __init__(self,data=None,data_mask=None):
        self.data,self.data_mask=data,data_mask
        if data==None and data_mask==None:
            self.GeneraterandomData(100,5,3,2)


    def GeneraterandomData(self,N,C,Lag,nUnknown): # N number of Samples,
C: number of features, Lag: Number of autoregressions, nUnknown: number of
unknown features at each time
         pdb.set_trace()
         self.data=np.random.rand(N,C)
         self.data_mask=np.ones((Lag,C))
         self.data_mask[0,0:nUnknown]=0

         return self.data,self.data_mask


def main(argv=None):
    if argv==None:
        argv=sys.argv

   GP=GaussianProcess();
    #print(GP.data,GP.data_mask)



    print("Done!")


if __name__=="__main__":
    sys.exit(main())


Thanks,

Ali

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to