cdxcore 0.1.33__py3-none-any.whl → 0.1.34__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 cdxcore might be problematic. Click here for more details.

cdxcore/__init__.py CHANGED
@@ -4,4 +4,4 @@ Created on June 2022
4
4
  @author: hansb
5
5
  """
6
6
 
7
- __version__ = "0.1.33" # auto-updated by setup.py
7
+ __version__ = "0.1.34" # auto-updated by setup.py
cdxcore/dynaplot.py CHANGED
@@ -808,7 +808,7 @@ class DynaFig(_DynaDeferred):
808
808
 
809
809
  add_plot = add_subplot
810
810
 
811
- def add_subplots( self, titles : list[str]|int ) -> tuple[DynaAx]:
811
+ def add_subplots( self, *titles ) -> tuple[DynaAx]:
812
812
  """
813
813
  Generate a number of sub-plots in one function call.
814
814
 
@@ -822,7 +822,9 @@ class DynaFig(_DynaDeferred):
822
822
  Sub-plots: tuple
823
823
  A tuple of sub-plots, one for each ``title``.
824
824
  """
825
- if isinstance( titles, int ):
825
+ if len(titles) == 0:
826
+ return ()
827
+ if len(titles) == 1 and isinstance(titles[0], int):
826
828
  return tuple( self.add_subplot() for _ in range(titles) )
827
829
  else:
828
830
  return tuple( self.add_subplot(title) for title in titles )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cdxcore
3
- Version: 0.1.33
3
+ Version: 0.1.34
4
4
  Summary: Basic Python Tools; upgraded cdxbasics
5
5
  Author-email: Hans Buehler <github@buehler.london>
6
6
  License-Expression: MIT
@@ -1,8 +1,8 @@
1
- cdxcore/__init__.py,sha256=AMw2x7FFiX1eJhtpUkh-Asot7YFRN1_zo_7jId4nK0Y,127
1
+ cdxcore/__init__.py,sha256=29SBfND_sh88t-ma4tg73HZXCQoU9XWSe-TH-Q_qTRU,127
2
2
  cdxcore/config.py,sha256=RaxpAnTEyGXLiq-1O2prXFBb2sdyqB6hHDHPAFGe2k0,98472
3
3
  cdxcore/deferred.py,sha256=41buUit1SOAnhVSrzlzM5hd2OOhnAS2QRDSWEpjXfdE,43138
4
4
  cdxcore/dynalimits.py,sha256=TXEwa4wCdeM5epG1ceezaHwvmhnbU-oXlXpHNbOMQR8,11293
5
- cdxcore/dynaplot.py,sha256=axfdz8o2JdlALb2SGTBjYkxR__VMhp75ThDkGfMnJxE,57859
5
+ cdxcore/dynaplot.py,sha256=iyjQ7J6VIoxinHyWdS4YDjUIWOBq3olhWRZh2jnjE10,57919
6
6
  cdxcore/err.py,sha256=3JP1IZDMIKayTt-ZNV9PCYdjtvkybQTjZOrRmBZWyfg,14709
7
7
  cdxcore/filelock.py,sha256=D2U8rzxYkeuDc8RLRbePBQ939PPxcJuRC8sahmVx-x8,34781
8
8
  cdxcore/jcpool.py,sha256=Vw8o8S4_qTVQNIr2sRaBR_kHz_wO0zpYs0QjlKSYFz8,27280
@@ -14,7 +14,7 @@ cdxcore/uniquehash.py,sha256=UlusNrQ1AKmbF542FNXM42f1Wy5OhujCpwsV3M9ARbw,50866
14
14
  cdxcore/util.py,sha256=dqCEhrDvUM4qjeUwb6n8jPfS8WC4Navcj83gDjXfRFE,39349
15
15
  cdxcore/verbose.py,sha256=vsjGTVnAHMPg2L2RfsowWKKPjUSnQJ3F653vDTydBkI,30223
16
16
  cdxcore/version.py,sha256=pmbFIZ6Egif_ppZNFJRqEZO0HBffIzkn-hkY6HpkMpU,27325
17
- cdxcore-0.1.33.dist-info/licenses/LICENSE,sha256=M-cisgK9kb1bqVRJ7vrCxHcMQQfDxdY3c2YFJJWfNQg,1090
17
+ cdxcore-0.1.34.dist-info/licenses/LICENSE,sha256=M-cisgK9kb1bqVRJ7vrCxHcMQQfDxdY3c2YFJJWfNQg,1090
18
18
  docs/source/conf.py,sha256=yn3LYgw3sT45mUyll-B2emVp6jg7H6KfAHOcBg_MNv4,4182
19
19
  tests/test_config.py,sha256=N86mH3y7k3LXEmU8uPLfrmRMZ-80VhlD35nBbpLmebg,15617
20
20
  tests/test_deferred.py,sha256=4Xsb76r-XqHKiBuHa4jbErjMWbrgHXfPwewzzY4lf9Y,7922
@@ -34,7 +34,7 @@ tmp/npsh1.py,sha256=mNucUl2-jNmE84GlMlliB4aJ0UQ9FqdymgcY_9mLeZY,15432
34
34
  tmp/sharedarray.py,sha256=dNOT1ObCc3nM3qA3OA508NcENIBnkmWMxRPCqvMVa8A,12862
35
35
  up/git_message.py,sha256=EfSH7Pit3ZoCiRqSMwRCUN_QyuwreU4LTIyGSutBlm4,123
36
36
  up/pip_modify_setup.py,sha256=Esaml4yA9tFsqxLhk5bWSwvKCURONjQqfyChgFV2TSY,1584
37
- cdxcore-0.1.33.dist-info/METADATA,sha256=iXFISZriqLspWrr6bv1tuHrrNJFEJ5XYk2PGXEePQ-4,5939
38
- cdxcore-0.1.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
- cdxcore-0.1.33.dist-info/top_level.txt,sha256=phNSwCyJFe7UP2YMoi8o6ykhotatlIbJHjTp9EHM51k,26
40
- cdxcore-0.1.33.dist-info/RECORD,,
37
+ cdxcore-0.1.34.dist-info/METADATA,sha256=bj4IPmr7Zelak0Dp5W3lLjT8gI8IfCsT8F65RUJ_U7g,5939
38
+ cdxcore-0.1.34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
+ cdxcore-0.1.34.dist-info/top_level.txt,sha256=phNSwCyJFe7UP2YMoi8o6ykhotatlIbJHjTp9EHM51k,26
40
+ cdxcore-0.1.34.dist-info/RECORD,,