Closed colasri closed 6 years ago
Merging #7 into master will increase coverage by
0.08%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #7 +/- ##
==========================================
+ Coverage 93.41% 93.49% +0.08%
==========================================
Files 38 38
Lines 1442 1446 +4
==========================================
+ Hits 1347 1352 +5
+ Misses 95 94 -1
That's perfect!
Please add a comment to explain why that is necessary and a quick test using the copy
module (not the parallel feature, for which you would need a running ipython cluster) that both copy.copy
and copy.deepcopy
work.
The
HAL.get_simulated_dataset(self, name)
function calls makes a deepcopy of the HAL instanceclone = copy.deepcopy(self)
on https://github.com/giacomov/hawc_hal/blob/master/hawc_hal/HAL.py#L523. It crashes when any of the response bin contains an invalid PSF (even if the bin is not part of the active planes):This commit fixes that. I'm not sure if that's the best solution though, comments welcome.