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

Rewrite and segregation of H5Parm #89

Closed
Joshuaalbert opened this issue Apr 23, 2019 · 4 comments
Closed

Rewrite and segregation of H5Parm #89

Joshuaalbert opened this issue Apr 23, 2019 · 4 comments

Comments

@Joshuaalbert
Copy link
Collaborator

Hi Fra,

I have come across many bugs in the recent while with losoto.h5parm. Partly it's from py3 compatibility and partly from pytables updates and partly I found more efficient ways of doing things. For example, trying to set the soltab values was occasionally zeroing out all the values in the soltab. Occasionally, the file would get corrupted. Deleting solset and soltabs was not working. The BLOSC compression is not used. This actually results in far faster IO if it's used at some computational cost to save data. I have rewritten it from scratch, keeping the same conventions as you use, and depreciating some variable names. It is also extended to use astropy for unit conversion, better handling of variable dimension order, has a context manager (so you can use with ...: to auto close), and added other features. I'm opening this issue to suggest a segregation of the h5parm code into it's own repo, and I can put my version there. That way if a project wants to use it without all the numerical aspects of losoto it's simple. They only need pytables and astropy installed. What are your thoughts on this? The rewrite can be seen here: https://github.com/Joshuaalbert/bayes_filter/blob/master/bayes_filter/datapack.py

@revoltek
Copy link
Owner

Hi Josh, that's a very impressive effort, and you are definitely right that there's a number of things that can be re-organised/optimized in that lib. It has been in my todo list for a long time. I quickly checked your new libs and we need to discuss how backward compatible it is. We can try to make it the new h5parm.py but we need to check that all operations works fine with it. Shall we plan an extensive discussion on that during the lofar meeting?

@Joshuaalbert
Copy link
Collaborator Author

Joshuaalbert commented Apr 23, 2019 via email

@Joshuaalbert
Copy link
Collaborator Author

Which date seems best to do a session to work this out? I'm flexible.

@Joshuaalbert
Copy link
Collaborator Author

Requires unit tests to see which functionality breaks when we change things. Closing. Made milestone #91

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

No branches or pull requests

2 participants