prefig 0.4.1.dev20250804055352__py3-none-any.whl → 0.4.1.dev20250807054726__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.
prefig/core/utilities.py CHANGED
@@ -2,6 +2,9 @@ import numpy as np
2
2
  from . import user_namespace as un
3
3
  from . import label
4
4
 
5
+ import logging
6
+ logger = logging.getLogger('prefigure')
7
+
5
8
  import warnings
6
9
  with warnings.catch_warnings():
7
10
  warnings.filterwarnings('ignore', 'legacy print')
@@ -25,7 +28,7 @@ def get_attr(element, attr, default):
25
28
  try:
26
29
  attribute = un.valid_eval(element.get(attr, default))
27
30
  if isinstance(attribute, np.ndarray):
28
- return np.array2string(attribute, separator=',')
31
+ return ','.join([float2longstr(a) for a in attribute])
29
32
  return str(attribute)
30
33
  except (TypeError, SyntaxError): # this is a string that's not in the namespace
31
34
  return element.get(attr, default)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prefig
3
- Version: 0.4.1.dev20250804055352
3
+ Version: 0.4.1.dev20250807054726
4
4
  Summary: An authoring system for mathematical diagrams
5
5
  Home-page: https://prefigure.org
6
6
  License: GPL-3.0-or-later
@@ -40,7 +40,7 @@ prefig/core/statistics.py,sha256=5qN_-ABN0EFVG12ZP95uSPk82INbWRqI3w2fUdR3wsw,345
40
40
  prefig/core/tags.py,sha256=7w6E3960o_ZgZl4xYJLVJ1eLttt0vVlB4IgMZGTMyyE,4134
41
41
  prefig/core/tangent_line.py,sha256=I9wf9VAqhnmmsh8Lzynwi7_Z1DonHXqHf8ym7eO40tk,3400
42
42
  prefig/core/user_namespace.py,sha256=6xlkYd2g9dSiDPH0vmYj93oPzm1BFZdgyMGQ9ipKOgU,7059
43
- prefig/core/utilities.py,sha256=R1fBrzj-abXHG4Bh-sS0pZNC8vc9fIt6yJBcuztCVho,2905
43
+ prefig/core/utilities.py,sha256=ndbB43tDDMj-RFUCCJAFgfdVb1gxYyr9WuHZoHEPC6c,2967
44
44
  prefig/core/vector.py,sha256=lTw-y9mt6jqmbFxdPwQB4PYBQ9y4pGrQRcpRp9lBIbY,2917
45
45
  prefig/engine.py,sha256=Zz7j2sFxeMwPN1f3GFTpaBihqguzMNJD5iBONOVL7eQ,11972
46
46
  prefig/resources/diagcess/diagcess.html,sha256=_JOwYjDRftpXN50J5na2Ck3TRffF4qUEcjCicjHF2Vw,6067
@@ -61,8 +61,8 @@ prefig/resources/schema/pf_schema.rng,sha256=TmZQLgyK2wntXDXOiQXYcVQedlPuPh8IWrt
61
61
  prefig/resources/template/pf_publication.xml,sha256=eEv8HACv610Apw5DSVNy0reLfELYqHlNy9Oq0GH7C_c,200
62
62
  prefig/scripts/__init__.py,sha256=qJcPi1WRh9UAwu4zIFJbmxWalAMilMYqgi6LxRkF7bI,25
63
63
  prefig/scripts/install_mj.py,sha256=5A6-oc1xbIXka5mkFE70vlp9-Rh_QoxOxGMrQi9Hkio,1219
64
- prefig-0.4.1.dev20250804055352.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
- prefig-0.4.1.dev20250804055352.dist-info/METADATA,sha256=onNsizsCuroeC14uzGcLFN-u_7hnENdmRjq3N4TXXo0,8728
66
- prefig-0.4.1.dev20250804055352.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
67
- prefig-0.4.1.dev20250804055352.dist-info/entry_points.txt,sha256=OP4ZQT71q2b0Zfbie-oM2Z1HlxpkuX7qaxJnzwsBOVQ,42
68
- prefig-0.4.1.dev20250804055352.dist-info/RECORD,,
64
+ prefig-0.4.1.dev20250807054726.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
65
+ prefig-0.4.1.dev20250807054726.dist-info/METADATA,sha256=klqvWJaWcHW0CTMVv9Kpnt_SOOYg_QkzkqEZ8EsxU9s,8728
66
+ prefig-0.4.1.dev20250807054726.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
67
+ prefig-0.4.1.dev20250807054726.dist-info/entry_points.txt,sha256=OP4ZQT71q2b0Zfbie-oM2Z1HlxpkuX7qaxJnzwsBOVQ,42
68
+ prefig-0.4.1.dev20250807054726.dist-info/RECORD,,