Closed tlestang closed 4 years ago
Merging #19 into dev will increase coverage by
0.69%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## dev #19 +/- ##
==========================================
+ Coverage 77.83% 78.53% +0.69%
==========================================
Files 14 14
Lines 1092 1202 +110
==========================================
+ Hits 850 944 +94
- Misses 242 258 +16
Impacted Files | Coverage Δ | |
---|---|---|
stochrare/dynamics/diffusion.py | 86.56% <100.00%> (-1.46%) |
:arrow_down: |
stochrare/utils.py | 100.00% <100.00%> (ø) |
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 22af6bc...bcc5d13. Read the comment docs.
This adds a new decorator
one_d_method
instochrare.utils
that protects methods that should only be available for 1d dynamics. Caveat: the decorator should only be used on objects that have an attribute dimension.Additonally, this PR makes the
dimension
attribute of classDiffusionProcess
aproperty
, checking that the dimension is not lower than 1.Addresses #8