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

Merge to_hdf #606

Merged
merged 18 commits into from
Jun 28, 2016
Merged

Merge to_hdf #606

merged 18 commits into from
Jun 28, 2016

Conversation

ftsamis
Copy link
Member

@ftsamis ftsamis commented Jun 26, 2016

This is the merge PR for tardis-sn/tardis/to_hdf, rebased to master, since there were a few conflicts.

@wkerzendorf
Copy link
Member

wkerzendorf commented Jun 26, 2016

@ftsamis all mine when travis passes.
@tardis-sn/tardis-core this is TEP2 in it's entirety. I want someone else to go through the code and sign-off.

@ftsamis
Copy link
Member Author

ftsamis commented Jun 26, 2016

@wkerzendorf All yours! 😛




class TARDISSpectrum(object):
Copy link
Member

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.

@@ -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)
Copy link
Contributor

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
Copy link
Contributor

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.

@wkerzendorf
Copy link
Member

@yeganer i'm going to merge now, right?

@wkerzendorf wkerzendorf merged commit d42badd into tardis-sn:master Jun 28, 2016
@wkerzendorf wkerzendorf removed the ready label Jun 28, 2016
@ftsamis ftsamis deleted the to_hdf-merge branch December 20, 2016 15:32
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

Successfully merging this pull request may close these issues.

3 participants