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

[TEP014] PlasmaWriterMixin #752

Merged
merged 11 commits into from
Jul 19, 2017
Merged

[TEP014] PlasmaWriterMixin #752

merged 11 commits into from
Jul 19, 2017

Conversation

vg3095
Copy link
Contributor

@vg3095 vg3095 commented Jun 22, 2017

No description provided.

@wkerzendorf
Copy link
Member

first of all @vg3095 rebase

data.pop('atomic_data')
return data

def to_hdf(self, file_path, path='plasma', collection=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be the same as the "normal" to_hdf

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case you should also have class properties by using the property decorator on the outputs for example.

Copy link
Contributor Author

@vg3095 vg3095 Jun 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wkerzendorf I am facing a small problem here , I don't want name parameter here for Plasma hdf calls ,
With name parameter it will save like ex-> /plasma/abundance/abundance
without name parameter /plasma/abundance/

@vg3095
Copy link
Contributor Author

vg3095 commented Jun 23, 2017

@wkerzendorf Please review.

@yeganer
Copy link
Contributor

yeganer commented Jul 17, 2017

@wkerzendorf @vg3095 I think this PR need some rework before we can merge it. Specifically I don't like mixing functionality of the PlasmaHDFWriter into the normal HDFWriter (the changes to the to_hdf method by adding a 2nd kw argument). I'd prefer to either solve this by adding a collection property to the PlasmaHDFWriter or by overwriting the to_hdf method (and then calling the original with super)

@vg3095
Copy link
Contributor Author

vg3095 commented Jul 18, 2017

@wkerzendorf @yeganer Now, I have updated this.

Copy link
Member

@wkerzendorf wkerzendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@wkerzendorf
Copy link
Member

@tardis-sn/tardis-core can someone else look over this and approve this for merging?

@wkerzendorf wkerzendorf merged commit 7583d87 into tardis-sn:master Jul 19, 2017
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.

4 participants