Closed imbasimba closed 3 years ago
Merging #67 (aced413) into master (0a432ba) will decrease coverage by
0.08%
. The diff coverage is81.81%
.
@@ Coverage Diff @@
## master #67 +/- ##
==========================================
- Coverage 74.77% 74.69% -0.09%
==========================================
Files 22 22
Lines 3037 3051 +14
==========================================
+ Hits 2271 2279 +8
- Misses 766 772 +6
Impacted Files | Coverage Δ | |
---|---|---|
toasty/image.py | 75.80% <81.81%> (-0.01%) |
:arrow_down: |
toasty/pipeline/djangoplicity.py | 0.00% <0.00%> (ø) |
|
toasty/pipeline/astropix.py | 82.40% <0.00%> (+0.73%) |
: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 0a432ba...aced413. Read the comment docs.
Windows cannot overwrite a file while it is open. Also, Windows refuses to close a file while there is an active variable pointing to data within said file. Therefore we have to go through the extra trouble of copying the entire data array to memory, so that we can properly close the file. After that we can continue as usual and modify the data array and overwrite the original file.