moreniius 0.2.5__py3-none-any.whl → 0.3.0__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.
@@ -150,7 +150,7 @@ def register_translator(name, translator):
150
150
  Your translator must be a function with one input, the NXInstance object, and one output, a NeXus object.
151
151
  After you have defined your translator function, you can register it with this function.
152
152
 
153
- >>> import eniius
153
+ >>> import moreniius
154
154
  >>>
155
155
  >>> def my_translator(instance):
156
156
  >>> from nexusformat.nexus import NXguide
moreniius/mccode/instr.py CHANGED
@@ -14,13 +14,13 @@ class NXInstr:
14
14
  def __post_init__(self):
15
15
  """Start the C translation to ensure McCode-oddities are handled before any C-code parsing."""
16
16
  from mccode_antlr.common import ShapeType, DataType, Value
17
- from mccode_antlr.translators.target import MCSTAS_GENERATOR
17
+ from mccode_antlr import Flavor
18
18
  from mccode_antlr.translators.c import CTargetVisitor
19
19
  from mccode_antlr.translators.c_listener import CDeclarator
20
20
  from mccode_antlr.translators.c_listener import evaluate_c_defined_expressions
21
21
  config = dict(default_main=True, enable_trace=False, portable=False, include_runtime=True,
22
22
  embed_instrument_file=False, verbose=False, output=None)
23
- translator = CTargetVisitor(self.instr, generate=MCSTAS_GENERATOR, config=config)
23
+ translator = CTargetVisitor(self.instr, flavor=Flavor.MCSTAS, config=config)
24
24
  # translator.instrument_uservars is a list of `CDeclaration` objects, which are named tuples with
25
25
  # fields: name type init is_pointer is_array orig
26
26
  # translator.component_uservars is a dictionary of lists for each component type of `CDeclaration` objects.
@@ -1,14 +1,20 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: moreniius
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Author-email: Gregory Tucker <gregory.tucker@ess.eu>
5
5
  Classifier: License :: OSI Approved :: BSD License
6
6
  Classifier: Development Status :: 2 - Pre-Alpha
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
7
14
  Description-Content-Type: text/markdown
8
15
  Requires-Dist: zenlog>=1.1
9
16
  Requires-Dist: platformdirs>=3.11
10
- Requires-Dist: importlib_metadata; python_version < "3.8"
11
- Requires-Dist: mccode-antlr[hdf5]>=0.9.2
17
+ Requires-Dist: mccode-antlr[hdf5]>=0.13.0
12
18
  Requires-Dist: nexusformat>=1.0.6
13
19
 
14
20
  # moreniius
@@ -7,12 +7,12 @@ moreniius/utils.py,sha256=R81eHjc0EWjMsP-Z8WI9sZkc_QY357z_aYziflQAUEU,9238
7
7
  moreniius/writer.py,sha256=rZSOpSmCAiY1KS3YAWKBXZUWTJFLyrkZT-zeZfyENV8,6178
8
8
  moreniius/mccode/__init__.py,sha256=1QiZdh90G3gp_WlVpdJB_ZGauoW0GJEQ13Nelaqa5JE,151
9
9
  moreniius/mccode/comp.py,sha256=uR1L5nLfYPHhMKd3XnDbqf5xhkfwfPLRnttREc3jqBg,7382
10
- moreniius/mccode/instance.py,sha256=4nqJ3ne6yXCEvsa3FIKUcGDYP_z7cAr46JhakDTB6qs,8055
11
- moreniius/mccode/instr.py,sha256=q0NS2hH7eWaHu4xzdcPRRx4M-9WHA2IcElgO__PXjiQ,6138
10
+ moreniius/mccode/instance.py,sha256=yydYeMGITlZrVWBVYregBWQ0Sd_2A71hgoyCrLLW-Jk,8058
11
+ moreniius/mccode/instr.py,sha256=G00MuwhH1QS7gZvABG5BdywFOB2AtqViwbSLyG_u0wk,6104
12
12
  moreniius/mccode/mccode.py,sha256=6NEXovuG-6itzlPgPklNOiZQ-MlldKF20p4TxV8n4BA,3228
13
13
  moreniius/mccode/orientation.py,sha256=khT0jTMXyXkPCoEpDg-eLKulF-J2wIqNhUi1NzFWvto,3907
14
- moreniius-0.2.5.dist-info/METADATA,sha256=9d8qeZuOv6YNkojoOPY41lTdhv7tVycA2m5XM6ytqdk,620
15
- moreniius-0.2.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
- moreniius-0.2.5.dist-info/entry_points.txt,sha256=Ga3k4P4fyBt5_dJ03Oapic2Qlgqv9jufQGdxWiz_j2A,63
17
- moreniius-0.2.5.dist-info/top_level.txt,sha256=RzMo23UfVhgQeuOYeS5P9I0qVbxx4Gbe6Roc29Mr02c,10
18
- moreniius-0.2.5.dist-info/RECORD,,
14
+ moreniius-0.3.0.dist-info/METADATA,sha256=UZiXt1i-PnN78u8V7sk0bgHx2FDxzrMX3eifvOZzIsQ,921
15
+ moreniius-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ moreniius-0.3.0.dist-info/entry_points.txt,sha256=Ga3k4P4fyBt5_dJ03Oapic2Qlgqv9jufQGdxWiz_j2A,63
17
+ moreniius-0.3.0.dist-info/top_level.txt,sha256=RzMo23UfVhgQeuOYeS5P9I0qVbxx4Gbe6Roc29Mr02c,10
18
+ moreniius-0.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5