batplot 1.8.37__tar.gz → 1.8.38__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {batplot-1.8.37/batplot.egg-info → batplot-1.8.38}/PKG-INFO +1 -1
- {batplot-1.8.37 → batplot-1.8.38}/batplot/__init__.py +1 -1
- {batplot-1.8.37 → batplot-1.8.38}/batplot/data/CHANGELOG.md +4 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/interactive.py +20 -4
- {batplot-1.8.37 → batplot-1.8.38/batplot.egg-info}/PKG-INFO +1 -1
- {batplot-1.8.37 → batplot-1.8.38}/pyproject.toml +1 -1
- {batplot-1.8.37 → batplot-1.8.38}/LICENSE +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/MANIFEST.in +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/NOTICE +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/README.md +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/args.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/batch.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/batplot.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/canvas_interactive.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/cif.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/cli.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/color_utils.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/config.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/converters.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/cpc_interactive.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/data/USER_MANUAL.md +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/dev_upgrade.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/electrochem_interactive.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/manual.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/modes.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/operando.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/operando_ec_interactive.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/plotting.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/readers.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/session.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/showcol.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/style.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/ui.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/utils.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot/version_check.py +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/SOURCES.txt +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/dependency_links.txt +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/entry_points.txt +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/requires.txt +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/top_level.txt +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/setup.cfg +0 -0
- {batplot-1.8.37 → batplot-1.8.38}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: batplot
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.38
|
|
4
4
|
Summary: Interactive plotting tool for material science (1D plot) and electrochemistry (GC, CV, dQ/dV, CPC, operando) with batch processing
|
|
5
5
|
Author-email: Tian Dai <tianda@uio.no>
|
|
6
6
|
License: MIT License
|
|
@@ -91,10 +91,12 @@ class _FilterIMKWarning:
|
|
|
91
91
|
self.original_stderr.flush()
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
def _safe_input(prompt: str = "") -> str:
|
|
94
|
+
def _safe_input(prompt: str = "", *, cancel_on_interrupt: bool = True) -> str:
|
|
95
95
|
"""Wrapper around input() that suppresses macOS IMKCFRunLoopWakeUpReliable warnings.
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
|
|
97
|
+
On **Ctrl+C** (or EOF on stdin), returns ``""`` by default so prompts behave like cancel
|
|
98
|
+
and the interactive menu keeps running instead of exiting with a traceback.
|
|
99
|
+
Set ``cancel_on_interrupt=False`` to re-raise (e.g. tests).
|
|
98
100
|
"""
|
|
99
101
|
# Filter stderr to hide macOS IMK warnings while preserving other errors
|
|
100
102
|
original_stderr = sys.stderr
|
|
@@ -102,7 +104,21 @@ def _safe_input(prompt: str = "") -> str:
|
|
|
102
104
|
try:
|
|
103
105
|
result = input(prompt)
|
|
104
106
|
return result
|
|
105
|
-
except
|
|
107
|
+
except KeyboardInterrupt:
|
|
108
|
+
if cancel_on_interrupt:
|
|
109
|
+
try:
|
|
110
|
+
print()
|
|
111
|
+
except Exception:
|
|
112
|
+
pass
|
|
113
|
+
return ""
|
|
114
|
+
raise
|
|
115
|
+
except EOFError:
|
|
116
|
+
if cancel_on_interrupt:
|
|
117
|
+
try:
|
|
118
|
+
print()
|
|
119
|
+
except Exception:
|
|
120
|
+
pass
|
|
121
|
+
return ""
|
|
106
122
|
raise
|
|
107
123
|
finally:
|
|
108
124
|
sys.stderr = original_stderr
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: batplot
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.38
|
|
4
4
|
Summary: Interactive plotting tool for material science (1D plot) and electrochemistry (GC, CV, dQ/dV, CPC, operando) with batch processing
|
|
5
5
|
Author-email: Tian Dai <tianda@uio.no>
|
|
6
6
|
License: MIT License
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "batplot"
|
|
7
|
-
version = "1.8.
|
|
7
|
+
version = "1.8.38"
|
|
8
8
|
description = "Interactive plotting tool for material science (1D plot) and electrochemistry (GC, CV, dQ/dV, CPC, operando) with batch processing"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Tian Dai", email = "tianda@uio.no" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|