Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
KeyError when isoelastics not defined for combination of axes (close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Sep 18, 2017
1 parent d144d16 commit 093f9d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.8.1
- Bugfixes:
- KeyError when isoelastics not defined for combination of axes (#177)
0.8.0
- Remember directory for searching missing measurement data
- Bugfixes:
Expand Down
1 change: 0 additions & 1 deletion shapeout/gui/plot_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def contour_plot(measurements, levels=[0.5,0.95],
try:
isoel = isoelastics.default.get(**kwargs)
except KeyError:
raise
warnings.warn("Could not find matching isoelastics for"+
" Setting: x={}, y={}, method: {}".
format(xax, yax, kwargs["method"]))
Expand Down
1 change: 0 additions & 1 deletion shapeout/gui/plot_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def scatter_plot(measurement,
try:
isoel = isoelastics.default.get(**kwargs)
except KeyError:
raise
warnings.warn("Could not find matching isoelastics for"+
" Setting: x={}, y={}, method: {}".
format(xax, yax, kwargs["method"]))
Expand Down
2 changes: 1 addition & 1 deletion shapeout/session/rw.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def save(path, rtdc_list):
RTDCBase instances.
"""
tempdir = tempfile.mkdtemp()
returnWD = os.getcwd()
os.chdir(tempdir)
# Dump data into the temporary directory
index_file = os.path.join(tempdir, "index.txt")
Expand Down Expand Up @@ -204,7 +205,6 @@ def save(path, rtdc_list):
PolygonFilter.save_all(os.path.join(tempdir,
"PolygonFilters.poly"))

returnWD = os.getcwd()
# Zip everything
with zipfile.ZipFile(path, mode='w') as arc:
for root, _dirs, files in os.walk(tempdir):
Expand Down

0 comments on commit 093f9d5

Please sign in to comment.