Bugfix: Metadata doesn't exist if pre-squashed#136
Bugfix: Metadata doesn't exist if pre-squashed#136TomNicholas wants to merge 3 commits intomasterfrom
Conversation
|
Hello @TomNicholas! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-09 18:45:07 UTC |
Codecov Report
@@ Coverage Diff @@
## master #136 +/- ##
=======================================
Coverage 77.88% 77.88%
=======================================
Files 14 14
Lines 2139 2139
Branches 480 480
=======================================
Hits 1666 1666
Misses 304 304
Partials 169 169
Continue to review full report at Codecov.
|
johnomotani
left a comment
There was a problem hiding this comment.
Looks good, thanks @TomNicholas!
May indicate we need a test of pre_squashed=True... I'll have a think about it.
May be better to use reload_boutdataset?
|
I've no objections to this going in to maintain backward compatibility, but @TomNicholas if it's not much work to change, I think the It seemed cleaner to me at the time to have a separate function for reloading, but I think the ideal would be to auto-detect files that need 'reloading' instead of 'loading', and also auto-detect the 'pre-squashed' vs. all-variables-in-one-file cases. I might have a go at that now, and see if I can get it to work easily... xBOUT/xbout/tests/test_boutdataset.py Lines 799 to 833 in ec95524 |
|
Replaced by #137 |
One of the recent commits caused this error when loading pre-squashed files:
This change fixes it.