Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generating mock data #1

Open
jasonfan1997 opened this issue Sep 10, 2017 · 5 comments
Open

generating mock data #1

jasonfan1997 opened this issue Sep 10, 2017 · 5 comments

Comments

@jasonfan1997
Copy link

I am trying to generate some mock data of fermi but i have no idea about the procedure of it. Also , I want to know if the tuto.py working or not because I face some error when run it. What kind of file do I need to prepare if I try to generating mock data? Would you please kindly show me the steps?

@tdaylan
Copy link
Owner

tdaylan commented Sep 18, 2017 via email

@jasonfan1997
Copy link
Author

Hi Tansu

Thank you for your reply, but I have faced a new problem when I try to run pcat.main.inti().
This error message show up

PCAT v0.3 started at 20170923_211940
Configuration
Initializing...
1000000 samples will be taken, discarding the first 500000. The chain will be thinned by a factor of 5000.
The resulting chain will contain 100 samples per chain and 100 samples in total.
Traceback (most recent call last):

File "", line 1, in
runfile('/home/jason/pcatproject/temp.py', wdir='/home/jason/pcatproject')

File "/home/jason/anaconda3/envs/py27/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 688, in runfile
execfile(filename, namespace)

File "/home/jason/anaconda3/envs/py27/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 93, in execfile
builtins.execfile(filename, *where)

File "/home/jason/pcatproject/temp.py", line 22, in
pcat.main.init()

File "/home/jason/anaconda3/envs/py27/lib/python2.7/site-packages/pcat/main.py", line 513, in init
if gdat.binsenerfull == None:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@jasonfan1997
Copy link
Author

After I add .any() at the back, it work. But a new problem come out is this line when I run tuto.py
fileh5py = h5py.File(gdat.pathdata + 'inpt/adis.h5','r')
which do not exist
I have no idea what adis.h5 is
can you kindly explain? Thank You

@tdaylan
Copy link
Owner

tdaylan commented Sep 25, 2017 via email

@jasonfan1997
Copy link
Author

Hi

I still getting the same error after I pull development version pcat.
IOError: Unable to open file (Unable to open file: name = '/home/jason/data/inpt/adis.h5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)

Best
Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants