Commit dd22f89
Error propagation figure tuning (#103)
* 'Fixed `gauss_2d_large()`.
`kcsd.validation.csd_profile.gauss_2d_large(seed=63)` does not return
NaN anymore.
`repeatUntilValid()` decorator has been defined for that purpose.
A simple test for the fix provided in the `__main__` section of the module.
Note: The issue has not been solved by fixing distribution of
the `zs` variable in order to provide backward-compatibility.
* 2**32 - 1 included as possible alternative seed in the `kcsd.validation.csd_profile.repeatUntilValid()` decorator.
* Protection of `repeatUntilValid()` decorator against (extremely unlikely) neverending loop of seeds.
* `repeatUntilValid()` decorator reffactored
Seed sequence generation moved to `seedSequence()` generator function.
* `seedSequence()` generator function simplified (the generated sequence has changed though).
* Remove unnecessary imports
According to https://docs.python.org/3/library/builtins.html imports
from `builtsin` are unnecessary. As `builtsin` is Python 3 only,
their removal increases beckward-compatibility of the package.
Fixes #77
* Error Propagation Maps figure
I have included code which generates figure with EPMs (Fig. 7 at the
moment). Also, `colorblind_friendly` module with definition of
colorblind friendly colors is provided, which my code depends on.
* Error propagation maps dependencies reduced
The code of the `colorblind_friendly` module embedded in (copied into)
the script generating error propagation maps.
* Saving of figure of error propagation maps
The figure is saved as "error_propagation.pdf".
* Shabang provided
* Error propagation map figure tuning
Between-panel distance reduced.
Smart precision of ticklabels in both subplots (before only left plot).
* `chmod +x error_propagation.py`1 parent f410408 commit dd22f89
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
| 191 | + | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | | - | |
| 251 | + | |
0 commit comments