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
Release of v4.0.0? #117
Release of v4.0.0? #117
Conversation
…t yet with their proper type).
… subclass support.
…ibes what the hkl_type is that will be saved to HDF5.
Any dict that is loaded will be initialized with the items sorted in that order. For all types that derive from dict, the dict will be initialized using its true type directly (apparently, I had written it that way before already for some reason). This fixes #65.
…group that contains the hickled Python object, instead of the entire file (this allows for hickled objects to be more easily added to already existing HDF5-files, without messing up the root of that file).
…a single item at that level. All 'create_xxx' functions are now passed a string containing the name of the group/dataset that they should create.
Added missing 'six' requirement. Added a test for testing the dumping and loading of an OrderedDict.
…sary. Removed the auxiliary attributes that were required for reading it. The true type of a dict key is now saved as well, even though it is not used for anything (simply saving it now in case we want to use it later).
Merge master -> dev
Hickle subclasses
…re read using regex.
Codecov Report
@@ Coverage Diff @@
## master #117 +/- ##
===========================================
+ Coverage 87.40% 97.65% +10.24%
===========================================
Files 12 9 -3
Lines 762 596 -166
===========================================
- Hits 666 582 -84
+ Misses 96 14 -82
Continue to review full report at Codecov.
|
…oading. Providing a path that does not start with '/' will automatically add it to it. Added tests for these functionalities.
@telegraphic I am currently planning on continuing with the rewrite for v4.0.0 this weekend (I will therefore also be renaming and moving some branches around). |
…not necessary to restore the object's original state.
Added start of legacy support for v3. v4 now stores its HDF5 attributes using a 'HICKLE_' prefix, to allow users to add attributes to the group without interference.
…on't contain any datasets or groups themselves.
Added legacy support for hickle v3 (currently uses v3.4.7).
As legacy_v3 is expected to be able to load files made with Python 2.7, these are not changed.
Converted all v4 files to be PEP8 compliant. Rewritten 'load_python3' into 'load_builtins'. The 'load_numpy' and 'load_builtins' modules are only loaded when they are required, like all other loaders. Removed the 'containers_type_dict' as the true container type is already saved anyway. Astropy's classes are now reinitialized using their true type instantly. Astropy constants can now be properly dumped and loaded.
More changes for v4
@telegraphic Can you btw make a new release, as a legacy hickle file of v3.4.7 needs to be added to v4. |
Removed lines that are never used (and thus cannot be covered). Added 'NoneType' to the dict of acceptable dict key types, as Nones can be used as keys.
…o the README.md file instead.
@telegraphic Any chances we can get this done this weekend?
Unless you have something that you would like to add (or like me to add) for v4, I am pretty much done I think. |
Some more clean-up and adding of missing tests
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.
Downloaded and ran tests, LGTM
Will leave this one to you
Agreed, we can dump the
Just released on pypi
I think I've done this (migration is in beta)
Merged
Done
Makes sense, v3 branch made
About to do so
Fantastic stuff |
@telegraphic You may want to wait with releasing v4 until I have removed the |
was a bit trigger happy, yes will hold off. |
A little bit. |
Release of v4.0.0
Also create this PR in advance, such that we can keep track of what issues have already been dealt with. This includes changes made in any (non-merged) PR to the
dev
branch.Issues solved:
OrderedDict
is now supported (fixes Add support for OrderedDict #65);data_0
is no longer used if there is only a single data group/set (fixes Redundant data_0? #44);pickle
documentation with proper one (fixes Documentation example lead to 404 web page #122);hickle
knows for sure they are iterables (fixes cannot hickle simple class #70 and fixes support for python copy protocol __setstate__ __getstate__ if present in object #125);NOTE: Before this gets merged, a
v3
branch must be made ofmaster
.