cellpy 1.0.2.post2__tar.gz → 1.0.2.post4__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 (101) hide show
  1. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/PKG-INFO +1 -1
  2. cellpy-1.0.2.post4/cellpy/_version.py +1 -0
  3. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/cellreader.py +4 -2
  4. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/plotutils.py +11 -6
  5. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/PKG-INFO +1 -1
  6. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/pyproject.toml +1 -1
  7. cellpy-1.0.2.post2/cellpy/_version.py +0 -1
  8. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/AUTHORS.md +0 -0
  9. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/CONTRIBUTING.md +0 -0
  10. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/HISTORY.md +0 -0
  11. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/LICENSE.md +0 -0
  12. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/MANIFEST.in +0 -0
  13. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/README.md +0 -0
  14. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/__init__.py +0 -0
  15. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/cli.py +0 -0
  16. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/exceptions.py +0 -0
  17. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/internals/__init__.py +0 -0
  18. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/internals/core.py +0 -0
  19. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/internals/otherpath.py +0 -0
  20. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/__init__.py +0 -0
  21. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/__init__.py +0 -0
  22. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/_alias_module.py +0 -0
  23. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/_importing.py +0 -0
  24. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/_module.py +0 -0
  25. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/_syncronized.py +0 -0
  26. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/_version.py +0 -0
  27. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/libs/apipkg/py.typed +0 -0
  28. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/log.py +0 -0
  29. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/logging.json +0 -0
  30. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/.cellpy_prms_default.conf +0 -0
  31. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/__init__.py +0 -0
  32. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/internal_settings.py +0 -0
  33. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/legacy/__init__.py +0 -0
  34. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/legacy/update_headers.py +0 -0
  35. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/prmreader.py +0 -0
  36. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/parameters/prms.py +0 -0
  37. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/__init__.py +0 -0
  38. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/core.py +0 -0
  39. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/dbreader.py +0 -0
  40. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/do.py +0 -0
  41. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/filefinder.py +0 -0
  42. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/__init__.py +0 -0
  43. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_res.py +0 -0
  44. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_sql.py +0 -0
  45. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_sql_7.py +0 -0
  46. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_sql_csv.py +0 -0
  47. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_sql_h5.py +0 -0
  48. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/arbin_sql_xlsx.py +0 -0
  49. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/base.py +0 -0
  50. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/biologics_mpr.py +0 -0
  51. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/__init__.py +0 -0
  52. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/maccor_txt_one.py +0 -0
  53. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/maccor_txt_three.py +0 -0
  54. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/maccor_txt_two.py +0 -0
  55. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/maccor_txt_zero.py +0 -0
  56. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/neware_txt_one.py +0 -0
  57. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/configurations/neware_txt_zero.py +0 -0
  58. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/custom.py +0 -0
  59. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/ext_nda_reader.py +0 -0
  60. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/loader_specific_modules/__init__.py +0 -0
  61. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/loader_specific_modules/biologic_file_format.py +0 -0
  62. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/local_instrument.py +0 -0
  63. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/maccor_txt.py +0 -0
  64. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/neware_txt.py +0 -0
  65. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/neware_xlsx.py +0 -0
  66. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/pec_csv.py +0 -0
  67. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/processors/__init__.py +0 -0
  68. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/processors/post_processors.py +0 -0
  69. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/instruments/processors/pre_processors.py +0 -0
  70. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/readers/sql_dbreader.py +0 -0
  71. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/__init__.py +0 -0
  72. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch.py +0 -0
  73. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/__init__.py +0 -0
  74. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_analyzers.py +0 -0
  75. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_core.py +0 -0
  76. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_experiments.py +0 -0
  77. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_exporters.py +0 -0
  78. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_helpers.py +0 -0
  79. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_journals.py +0 -0
  80. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_plotters.py +0 -0
  81. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/batch_reporters.py +0 -0
  82. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/dumpers.py +0 -0
  83. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/engines.py +0 -0
  84. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/batch_tools/sqlite_from_excel_db.py +0 -0
  85. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/collectors.py +0 -0
  86. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/diagnostics.py +0 -0
  87. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/easyplot.py +0 -0
  88. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/example_data.py +0 -0
  89. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/helpers.py +0 -0
  90. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/ica.py +0 -0
  91. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/live.py +0 -0
  92. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/ocv_rlx.py +0 -0
  93. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy/utils/processor.py +0 -0
  94. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/SOURCES.txt +0 -0
  95. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/dependency_links.txt +0 -0
  96. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/entry_points.txt +0 -0
  97. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/not-zip-safe +0 -0
  98. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/requires.txt +0 -0
  99. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/cellpy.egg-info/top_level.txt +0 -0
  100. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/setup.cfg +0 -0
  101. {cellpy-1.0.2.post2 → cellpy-1.0.2.post4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cellpy
3
- Version: 1.0.2.post2
3
+ Version: 1.0.2.post4
4
4
  Summary: Extract and manipulate data from battery data testers.
5
5
  Home-page: https://github.com/jepegit/cellpy
6
6
  Author: Jan Petter Maehlen
@@ -0,0 +1 @@
1
+ __version__ = "1.0.2post4"
@@ -5362,11 +5362,13 @@ class CellpyCell:
5362
5362
 
5363
5363
  q = None
5364
5364
  for exclude_type in exclude_types:
5365
- _q = ~steps[t_st_txt].str.startswith(exclude_type)
5365
+ # check if it contains the type at all
5366
+ steps[t_st_txt].str.startswith(exclude_type)
5367
+ _q = ~steps[t_st_txt].str.startswith(exclude_type, na=False)
5366
5368
  q = _q if q is None else q & _q
5367
5369
 
5368
5370
  if exclude_steps:
5369
- _q = ~steps[t_st_txt].isin(exclude_steps)
5371
+ _q = ~steps[t_st_txt].isin(exclude_steps, na=False)
5370
5372
  q = _q if q is None else q & _q
5371
5373
 
5372
5374
  _delta_columns = [
@@ -401,11 +401,15 @@ def set_plotly_template(template_name=None, **kwargs):
401
401
  return None
402
402
  import plotly.io as pio
403
403
 
404
- if template_name is None:
405
- name = create_plotly_default_template(**kwargs)
406
- pio.templates.default = f"{PLOTLY_BASE_TEMPLATE}+{name}"
407
- else:
408
- pio.templates.default = template_name
404
+ try:
405
+ if template_name is None:
406
+ name = create_plotly_default_template(**kwargs)
407
+ pio.templates.default = f"{PLOTLY_BASE_TEMPLATE}+{name}"
408
+ else:
409
+ pio.templates.default = template_name
410
+ except Exception as e:
411
+ logging.debug(f"Could not set plotly template: {e}")
412
+ pio.templates.default = PLOTLY_BASE_TEMPLATE
409
413
 
410
414
 
411
415
  def create_plotly_default_template(
@@ -417,6 +421,7 @@ def create_plotly_default_template(
417
421
  marker_width=None,
418
422
  opacity=0.8,
419
423
  ):
424
+ # ValueError: Invalid property specified for object of type plotly.graph_objs.layout.XAxis: 'titlefont'
420
425
  if not plotly_available:
421
426
  return None
422
427
  import plotly.graph_objects as go
@@ -457,7 +462,7 @@ def create_plotly_default_template(
457
462
  gridcolor=grid_color,
458
463
  zeroline=False,
459
464
  tickformat=f"{tick_label_width}",
460
- titlefont_family=axis_font,
465
+ title_font_family=axis_font,
461
466
  title=dict(
462
467
  standoff=axis_standoff,
463
468
  font_size=axis_font_size,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cellpy
3
- Version: 1.0.2.post2
3
+ Version: 1.0.2.post4
4
4
  Summary: Extract and manipulate data from battery data testers.
5
5
  Home-page: https://github.com/jepegit/cellpy
6
6
  Author: Jan Petter Maehlen
@@ -14,7 +14,7 @@ markers = [
14
14
  line-length = 120
15
15
 
16
16
  [tool.bumpver]
17
- current_version = "1.0.2post2"
17
+ current_version = "1.0.2post4"
18
18
  version_pattern = "MAJOR.MINOR.PATCH[PYTAG][NUM]"
19
19
  commit_message = "bump version {old_version} -> {new_version}"
20
20
  commit = true
@@ -1 +0,0 @@
1
- __version__ = "1.0.2post2"
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