-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Merge to_hdf #606
Merge to_hdf #606
Conversation
* Add a to_hdf method to the MontecarloRunner. * Also store nu_bar_estimator and j_estimator in runner's to_hdf * Document MontecarloRunner.property_to_hdf
@ftsamis all mine when travis passes. |
@wkerzendorf All yours! 😛 |
|
||
|
||
|
||
class TARDISSpectrum(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this - not sure why this is even in there.
Add a method to store every iteration of the Simulation to a specified HDF file.
Store the v_inner, v_outer as model attributes. Furthermore, convert v_middle from a property to an attribute as well
@@ -90,21 +91,24 @@ def __init__(self, tardis_config): | |||
|
|||
self.t_inner = tardis_config.plasma.t_inner | |||
|
|||
self.v_inner = tardis_config.structure.v_inner | |||
self.v_outer = tardis_config.structure.v_outer | |||
self.v_middle = 0.5 * (self.v_inner + self.v_outer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a small thing which isn't important here. But in general one should prefer 0.5 * x + 0.5 * y
to prevent overflowing.
|
||
from tardis.io.util import to_hdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feeld it would look cleaner if we did import tardis.io.util
and then use tardis.io.util.to_hdf
.
Just a remark, not something need to fix before merging.
@yeganer i'm going to merge now, right? |
This is the merge PR for
tardis-sn/tardis/to_hdf
, rebased tomaster
, since there were a few conflicts.