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.
Files changed (42) hide show
  1. {batplot-1.8.37/batplot.egg-info → batplot-1.8.38}/PKG-INFO +1 -1
  2. {batplot-1.8.37 → batplot-1.8.38}/batplot/__init__.py +1 -1
  3. {batplot-1.8.37 → batplot-1.8.38}/batplot/data/CHANGELOG.md +4 -0
  4. {batplot-1.8.37 → batplot-1.8.38}/batplot/interactive.py +20 -4
  5. {batplot-1.8.37 → batplot-1.8.38/batplot.egg-info}/PKG-INFO +1 -1
  6. {batplot-1.8.37 → batplot-1.8.38}/pyproject.toml +1 -1
  7. {batplot-1.8.37 → batplot-1.8.38}/LICENSE +0 -0
  8. {batplot-1.8.37 → batplot-1.8.38}/MANIFEST.in +0 -0
  9. {batplot-1.8.37 → batplot-1.8.38}/NOTICE +0 -0
  10. {batplot-1.8.37 → batplot-1.8.38}/README.md +0 -0
  11. {batplot-1.8.37 → batplot-1.8.38}/batplot/args.py +0 -0
  12. {batplot-1.8.37 → batplot-1.8.38}/batplot/batch.py +0 -0
  13. {batplot-1.8.37 → batplot-1.8.38}/batplot/batplot.py +0 -0
  14. {batplot-1.8.37 → batplot-1.8.38}/batplot/canvas_interactive.py +0 -0
  15. {batplot-1.8.37 → batplot-1.8.38}/batplot/cif.py +0 -0
  16. {batplot-1.8.37 → batplot-1.8.38}/batplot/cli.py +0 -0
  17. {batplot-1.8.37 → batplot-1.8.38}/batplot/color_utils.py +0 -0
  18. {batplot-1.8.37 → batplot-1.8.38}/batplot/config.py +0 -0
  19. {batplot-1.8.37 → batplot-1.8.38}/batplot/converters.py +0 -0
  20. {batplot-1.8.37 → batplot-1.8.38}/batplot/cpc_interactive.py +0 -0
  21. {batplot-1.8.37 → batplot-1.8.38}/batplot/data/USER_MANUAL.md +0 -0
  22. {batplot-1.8.37 → batplot-1.8.38}/batplot/dev_upgrade.py +0 -0
  23. {batplot-1.8.37 → batplot-1.8.38}/batplot/electrochem_interactive.py +0 -0
  24. {batplot-1.8.37 → batplot-1.8.38}/batplot/manual.py +0 -0
  25. {batplot-1.8.37 → batplot-1.8.38}/batplot/modes.py +0 -0
  26. {batplot-1.8.37 → batplot-1.8.38}/batplot/operando.py +0 -0
  27. {batplot-1.8.37 → batplot-1.8.38}/batplot/operando_ec_interactive.py +0 -0
  28. {batplot-1.8.37 → batplot-1.8.38}/batplot/plotting.py +0 -0
  29. {batplot-1.8.37 → batplot-1.8.38}/batplot/readers.py +0 -0
  30. {batplot-1.8.37 → batplot-1.8.38}/batplot/session.py +0 -0
  31. {batplot-1.8.37 → batplot-1.8.38}/batplot/showcol.py +0 -0
  32. {batplot-1.8.37 → batplot-1.8.38}/batplot/style.py +0 -0
  33. {batplot-1.8.37 → batplot-1.8.38}/batplot/ui.py +0 -0
  34. {batplot-1.8.37 → batplot-1.8.38}/batplot/utils.py +0 -0
  35. {batplot-1.8.37 → batplot-1.8.38}/batplot/version_check.py +0 -0
  36. {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/SOURCES.txt +0 -0
  37. {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/dependency_links.txt +0 -0
  38. {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/entry_points.txt +0 -0
  39. {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/requires.txt +0 -0
  40. {batplot-1.8.37 → batplot-1.8.38}/batplot.egg-info/top_level.txt +0 -0
  41. {batplot-1.8.37 → batplot-1.8.38}/setup.cfg +0 -0
  42. {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.37
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
@@ -1,5 +1,5 @@
1
1
  """batplot: Interactive plotting for battery data visualization."""
2
2
 
3
- __version__ = "1.8.37"
3
+ __version__ = "1.8.38"
4
4
 
5
5
  __all__ = ["__version__"]
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.38] - 2026-04-03
4
+ - Bug fixes
5
+
6
+
3
7
  ## [1.8.37] - 2026-03-31
4
8
  - Bug fixes
5
9
 
@@ -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
- This is a harmless macOS system message that appears when using input() in terminals.
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 (KeyboardInterrupt, EOFError):
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.37
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.37"
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