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

save source attrs as JSON string representation (#328) #333

Merged
merged 10 commits into from
Apr 27, 2017

Conversation

nickhand
Copy link
Member

I think this is the most straightforward short-term solution to #328. Use nbodykit.utils.JSONEncoder to simply write out the JSON string in the BigFile

@rainwoodman
Copy link
Member

I suggest still make best attempt to write the attrs to the header. That's more readable than the json encoding. What about only collect those that failed into json?

@nickhand
Copy link
Member Author

How would we detect if attributes will fail? I think BigFile succeeds in writing them to file...it is only when we read them back in BigFileCatalog that we discover that some are actually nonsense

@rainwoodman
Copy link
Member

What if bigfile fails immediately trying to assign object array to an attr?

@nickhand nickhand merged commit ef63465 into bccp:master Apr 27, 2017
@nickhand nickhand deleted the save-attrs branch April 27, 2017 00:46
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.

None yet

2 participants