Closed steven-murray closed 2 years ago
Merging #283 (633d36c) into master (370cf9c) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #283 +/- ##
=======================================
Coverage 86.31% 86.31%
=======================================
Files 12 12
Lines 2776 2777 +1
=======================================
+ Hits 2396 2397 +1
Misses 380 380
Impacted Files | Coverage Δ | |
---|---|---|
src/py21cmfast/wrapper.py | 89.00% <100.00%> (+0.01%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b9f396e...633d36c. Read the comment docs.
Fixes #277
This should fix the behaviour mentioned in the above issue where data was being written even with
write=False
. The problem was that in every sub-function (eg.initial_conditions()
), thehooks
keyword was passed through, but not thewrite
keyword. While the hooks initially get built as a dict with the correct behaviour (i.e. no "write" entry), on the second time the hooks is constructed, withwrite=None
, it was assuming that function was being called directly and automatically inserting the write hook in, then passing that on.