Closed mariabile closed 2 years ago
Can you give the full traceback? Were there any errors or warnings when the HDF5 file was written? Thanks.
Good morning, this is the full output.
Marianna
Il giorno ven 30 lug 2021 alle ore 20:19 Ben Johnson < @.***> ha scritto:
Can you give the full traceback? Were there any errors or warnings when the HDF5 file was written? Thanks.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bd-j/prospector/issues/221#issuecomment-890071356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPVLJK3LU7UWOZILZTLQJTT2LULXANCNFSM5BGGWWSQ .
(venv3.9) Mariannas-MacBook-Pro:demo mariannaannunziatella$ python demo_params.py --objid=0 --emcee --optimize --outfile=demo_obj0_emcee
/Users/mariannaannunziatella/Software/prospector/demo/demo_params.py:199: DeprecationWarning: np.float
is a deprecated alias for the builtin float
. To silence this warning, use float
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64
here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
dtype=np.dtype([(n, np.float) for n in header]))
:::::::
<class 'prospect.models.sedmodel.SedModel'>
mass: <class 'prospect.models.priors.LogUniform'>(mini=1000000.0,maxi=10000000000.0) logzsol: <class 'prospect.models.priors.TopHat'>(mini=-2,maxi=0.19) dust2: <class 'prospect.models.priors.TopHat'>(mini=0.0,maxi=2.0) tage: <class 'prospect.models.priors.TopHat'>(mini=0.001,maxi=13.8) tau: <class 'prospect.models.priors.LogUniform'>(mini=0.1,maxi=10)
zred: [0.1] sfh: [4] imf_type: [2] dust_type: [0] lumdist: [1.e-05] /Users/mariannaannunziatella/Software/venv3.9/lib/python3.9/site-packages/prospect/models/priors.py:104: RuntimeWarning: divide by zero encountered in log lnp = np.log(p) number of walkers=64 done burn #0 (16 iterations) done burn #1 (32 iterations) done burn #2 (64 iterations) number of walkers=64 starting production done production /Users/mariannaannunziatella/Software/venv3.9/lib/python3.9/site-packages/prospect/io/write_results.py:290: RuntimeWarning: Could not JSON serialize run_params, pickled instead warnings.warn("Could not JSON serialize {}, pickled instead".format(k), /Users/mariannaannunziatella/Software/venv3.9/lib/python3.9/site-packages/prospect/io/write_results.py:290: RuntimeWarning: Could not JSON serialize model_params, pickled instead warnings.warn("Could not JSON serialize {}, pickled instead".format(k), Traceback (most recent call last): File "/Users/mariannaannunziatella/Software/venv3.9/lib/python3.9/site-packages/prospect/utils/plotting.py", line 27, in get_best theta_names = res["theta_labels"] File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "/Users/mariannaannunziatella/Software/venv3.9/lib/python3.9/site-packages/h5py/_hl/group.py", line 305, in getitem oid = h5o.open(self.id, self._e(name), lapl=self._lapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5o.pyx", line 190, in h5py.h5o.open KeyError: "Unable to open object (object 'theta_labels' doesn't exist)"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mariannaannunziatella/Software/prospector/demo/demo_params.py", line 303, in
ok, this is related to #215 but the fix introduced there will not work for this case. I'll push an update in a minute.
Thank you! I did try that fix and it was not working.
Marianna
Il giorno gio 5 ago 2021 alle ore 18:49 Ben Johnson < @.***> ha scritto:
ok, this is related to #215 https://github.com/bd-j/prospector/issues/215 but the fix introduced there will not work for this case. I'll push an update in a minute.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bd-j/prospector/issues/221#issuecomment-893609336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPVLJLVVNHFX6LCHKC5GV3T3K6LHANCNFSM5BGGWWSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
should be fixed by 2a66940
assuming this is resolved, but if not please do reopen.
Hello, I just installed prospector with all its dependencies. I am using python 3.9. When I try to run even the demo, I get the following error: File "h5py/h5o.pyx", line 190, in h5py.h5o.open KeyError: "Unable to open object (object 'model' doesn't exist)"
Do you have any idea of what is happening?