batplot 1.7.20__py3-none-any.whl → 1.7.21__py3-none-any.whl

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.

Potentially problematic release.


This version of batplot might be problematic. Click here for more details.

batplot/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  """batplot: Interactive plotting for battery data visualization."""
2
2
 
3
- __version__ = "1.7.20"
3
+ __version__ = "1.7.21"
4
4
 
5
5
  __all__ = ["__version__"]
@@ -3428,7 +3428,8 @@ def electrochem_interactive_menu(fig, ax, cycle_lines: Dict[int, Dict[str, Optio
3428
3428
  print("ΔV threshold must be positive.")
3429
3429
  continue
3430
3430
  break
3431
- if not delta_input or delta_input.lower() == 'q': # User quit at previous step
3431
+ # Only skip if user explicitly quit with 'q', not if they pressed Enter (empty = use default)
3432
+ if delta_input and delta_input.lower() == 'q': # User quit at previous step
3432
3433
  continue
3433
3434
  while True:
3434
3435
  window_input = input("Savitzky–Golay window (odd, default 9, 'q'=quit, 'e'=explain): ").strip()
@@ -3446,7 +3447,8 @@ def electrochem_interactive_menu(fig, ax, cycle_lines: Dict[int, Dict[str, Optio
3446
3447
  continue
3447
3448
  window = 9 if not window_input else int(window_input)
3448
3449
  break
3449
- if not window_input or window_input.lower() == 'q': # User quit at previous step
3450
+ # Only skip if user explicitly quit with 'q', not if they pressed Enter (empty = use default)
3451
+ if window_input and window_input.lower() == 'q': # User quit at previous step
3450
3452
  continue
3451
3453
  while True:
3452
3454
  poly_input = input("Polynomial order (default 3, 'q'=quit, 'e'=explain): ").strip()
@@ -3465,7 +3467,8 @@ def electrochem_interactive_menu(fig, ax, cycle_lines: Dict[int, Dict[str, Optio
3465
3467
  continue
3466
3468
  poly = 3 if not poly_input else int(poly_input)
3467
3469
  break
3468
- if not poly_input or poly_input.lower() == 'q': # User quit at previous step
3470
+ # Only skip if user explicitly quit with 'q', not if they pressed Enter (empty = use default)
3471
+ if poly_input and poly_input.lower() == 'q': # User quit at previous step
3469
3472
  continue
3470
3473
  except ValueError:
3471
3474
  print("Invalid number.")
@@ -3570,7 +3573,8 @@ def electrochem_interactive_menu(fig, ax, cycle_lines: Dict[int, Dict[str, Optio
3570
3573
  print("Threshold must be positive.")
3571
3574
  continue
3572
3575
  break
3573
- if not thresh_input or thresh_input.lower() == 'q': # User quit
3576
+ # Only skip if user explicitly quit with 'q', not if they pressed Enter (empty = use default)
3577
+ if thresh_input and thresh_input.lower() == 'q': # User quit
3574
3578
  continue
3575
3579
  push_state("smooth-outlier")
3576
3580
  filtered = 0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: batplot
3
- Version: 1.7.20
3
+ Version: 1.7.21
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-Expression: MIT
@@ -1,4 +1,4 @@
1
- batplot/__init__.py,sha256=PU3eDyjcAOKSgTrWgfLbOmVob8xFhE3e_uJhL7awqQM,119
1
+ batplot/__init__.py,sha256=pBlm8KrETGMEuMg9SQKe981DRAp6yRj-OovrBkyjWAY,119
2
2
  batplot/args.py,sha256=DYo3qYHL4UpZwcZLJ_70NpPgNv6SQSOdo_jsV4mYqaQ,34355
3
3
  batplot/batch.py,sha256=YQ7obCIqLCObwDbM7TXpOBh7g7BO95wZNsa2Fy84c6o,53858
4
4
  batplot/batplot.py,sha256=pUISNB_HxjcNvnzrC3Qy-nyk5MZctG8ptuhPh-7gho8,170659
@@ -8,7 +8,7 @@ batplot/color_utils.py,sha256=ow2ElqjIWFLRdrnLwQvrnfa3w3IEB0FodPFdoDQR_Dc,19990
8
8
  batplot/config.py,sha256=6nGY7fKN4T5KZUGQS2ArUBgEkLAL0j37XwG5SCVQgKA,6420
9
9
  batplot/converters.py,sha256=rR2WMPM0nR5E3eZI3gWbaJf_AfbdQx3urVSbJmZXNzo,8237
10
10
  batplot/cpc_interactive.py,sha256=Q4MEr_eb9KNYIxHPko2DFnzO2p66lPx8I_S1dXkOFSo,183452
11
- batplot/electrochem_interactive.py,sha256=bk9bqVdEcrFknwncMfPUOkXZjDNtLWw7PVaFgjTTAkU,200817
11
+ batplot/electrochem_interactive.py,sha256=kGgkmyxPh74E8VxvmpKkpWtAJ-ohE8s-zfbt0E5w9tQ,201277
12
12
  batplot/interactive.py,sha256=gAmfHLVu4dAC_-hpmpfJj8dyQTBbzRNweVODuQDIocw,196317
13
13
  batplot/manual.py,sha256=pbRI6G4Pm12pOW8LrOLWWu7IEOtqWN3tRHtgge50LlA,11556
14
14
  batplot/modes.py,sha256=qE2OsOQQKhwOWene5zxJeuuewTrZxubtahQuz5je7ok,37252
@@ -22,7 +22,7 @@ batplot/ui.py,sha256=MIY2x_ghCYxjdYhjMUZsMMnQEUBLgrIT37hfPGZf_cs,36320
22
22
  batplot/utils.py,sha256=3dBZALWiCu5c6uc5MBII7n8329BZjieTEw4qithTlow,33939
23
23
  batplot/version_check.py,sha256=OG4LuHo5-rSqLLHQo5nWbX9lbNq6NyxRdvVUUcJRBqQ,6219
24
24
  batplot/data/USER_MANUAL.md,sha256=VYPvNZt3Fy8Z4Izr2FnQBw9vEaFTPkybhHDnF-OuKws,17694
25
- batplot-1.7.20.dist-info/licenses/LICENSE,sha256=2PAnHeCiTfgI7aKZLWr0G56HI9fGKQ0CEbQ02H-yExQ,1065
25
+ batplot-1.7.21.dist-info/licenses/LICENSE,sha256=2PAnHeCiTfgI7aKZLWr0G56HI9fGKQ0CEbQ02H-yExQ,1065
26
26
  batplot_backup_20251121_223043/__init__.py,sha256=3s2DUQuTbWs65hoN9cQQ8IiJbaFJY8fNxiCpwRBYoOA,118
27
27
  batplot_backup_20251121_223043/args.py,sha256=OH-h84QhN-IhMS8sPAsSEqccHD3wpeMgmXa_fqv5xtg,21215
28
28
  batplot_backup_20251121_223043/batch.py,sha256=oI7PONJyciHDOqNPq-8fnOQMyn9CpAdVznKaEdsy0ig,48650
@@ -45,8 +45,8 @@ batplot_backup_20251121_223043/style.py,sha256=xg-tj6bEbFUVjjxYMokiLehS4tSfKanLI
45
45
  batplot_backup_20251121_223043/ui.py,sha256=K0XZWyiuBRNkFod9mgZyJ9CLN78GR1-hh6EznnIb5S8,31208
46
46
  batplot_backup_20251121_223043/utils.py,sha256=jydA0JxsCWWAudXEwSjlxTG17y2F8U6hIAukAzi1P0g,32526
47
47
  batplot_backup_20251121_223043/version_check.py,sha256=vlHkGkgUJcD_Z4KZmwonxZvKZh0MwHLaBSxaLPc66AQ,4555
48
- batplot-1.7.20.dist-info/METADATA,sha256=yfbDFGFtNj0uHIHxzY4YQZJKF5Fv-P6rqSEft4e-fhA,6137
49
- batplot-1.7.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- batplot-1.7.20.dist-info/entry_points.txt,sha256=73GgH3Zs-qGIvgiyQLgGsSW-ryOwPPKHveOW6TDIR5Q,82
51
- batplot-1.7.20.dist-info/top_level.txt,sha256=CgqK4RpsYnUFAcqO4bLOnEhCoPY4IPEGLPkiDlzLIxg,39
52
- batplot-1.7.20.dist-info/RECORD,,
48
+ batplot-1.7.21.dist-info/METADATA,sha256=0WwHb-tIxYhlZipOJoofws5omkviVSzKyNq8o9s7hVM,6137
49
+ batplot-1.7.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ batplot-1.7.21.dist-info/entry_points.txt,sha256=73GgH3Zs-qGIvgiyQLgGsSW-ryOwPPKHveOW6TDIR5Q,82
51
+ batplot-1.7.21.dist-info/top_level.txt,sha256=CgqK4RpsYnUFAcqO4bLOnEhCoPY4IPEGLPkiDlzLIxg,39
52
+ batplot-1.7.21.dist-info/RECORD,,