diff options
author | Aki <please@ignore.pl> | 2022-09-04 13:59:00 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-09-04 13:59:00 +0200 |
commit | 3c80ac5a0451dcfc93fc2783e47a0c35f1101396 (patch) | |
tree | b821eb16b93e020d4249938ea926b075bb60d7ef /szilagyi/plots.py | |
parent | 86648bfabf76497ca65298076fd73ada508b1dee (diff) | |
download | szilagyi-3c80ac5a0451dcfc93fc2783e47a0c35f1101396.zip szilagyi-3c80ac5a0451dcfc93fc2783e47a0c35f1101396.tar.gz szilagyi-3c80ac5a0451dcfc93fc2783e47a0c35f1101396.tar.bz2 |
Refactored edge cases handling
Diffstat (limited to 'szilagyi/plots.py')
-rw-r--r-- | szilagyi/plots.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/szilagyi/plots.py b/szilagyi/plots.py index 44782d6..9453919 100644 --- a/szilagyi/plots.py +++ b/szilagyi/plots.py @@ -23,10 +23,7 @@ if __name__ == "__main__": row = [] for x_scaled in range(0, 1000): x = x_scaled / 25 - try: - swi = calculate_swi(x, y) - except (IndexError, RuntimeError): - swi = -10 + swi = calculate_swi(x, y) row.append(swi) C.append(row) plot.pcolormesh(X, Y, C, cmap='viridis', vmin=-10, vmax=10, rasterized=True) |