restage 0.8.3__tar.gz → 0.9.0__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.
- {restage-0.8.3/src/restage.egg-info → restage-0.9.0}/PKG-INFO +3 -3
- {restage-0.8.3 → restage-0.9.0}/pyproject.toml +2 -2
- {restage-0.8.3 → restage-0.9.0/src/restage.egg-info}/PKG-INFO +3 -3
- {restage-0.8.3 → restage-0.9.0}/src/restage.egg-info/requires.txt +2 -2
- {restage-0.8.3 → restage-0.9.0}/test/test_energy.py +5 -2
- {restage-0.8.3 → restage-0.9.0}/.github/workflows/pip.yml +0 -0
- {restage-0.8.3 → restage-0.9.0}/.github/workflows/wheels.yml +0 -0
- {restage-0.8.3 → restage-0.9.0}/.gitignore +0 -0
- {restage-0.8.3 → restage-0.9.0}/README.md +0 -0
- {restage-0.8.3 → restage-0.9.0}/setup.cfg +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/__init__.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/bifrost_choppers.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/cache.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/config/__init__.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/config/default.yaml +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/cspec_choppers.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/database.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/emulate.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/energy.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/instr.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/mcpl.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/range.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/run.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/scan.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/splitrun.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage/tables.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage.egg-info/SOURCES.txt +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage.egg-info/dependency_links.txt +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage.egg-info/entry_points.txt +0 -0
- {restage-0.8.3 → restage-0.9.0}/src/restage.egg-info/top_level.txt +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_cache.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_cache_ro.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_database.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_env_vars.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_range.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_scan.py +0 -0
- {restage-0.8.3 → restage-0.9.0}/test/test_single.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: restage
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Author-email: Gregory Tucker <gregory.tucker@ess.eu>
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
Classifier: License :: OSI Approved :: BSD License
|
|
@@ -17,10 +17,10 @@ Requires-Dist: zenlog>=1.1
|
|
|
17
17
|
Requires-Dist: platformdirs>=3.11
|
|
18
18
|
Requires-Dist: confuse
|
|
19
19
|
Requires-Dist: psutil>=5.9.6
|
|
20
|
-
Requires-Dist: mccode-antlr[hdf5]>=0.
|
|
20
|
+
Requires-Dist: mccode-antlr[hdf5]>=0.16.1
|
|
21
21
|
Provides-Extra: test
|
|
22
22
|
Requires-Dist: pytest; extra == "test"
|
|
23
|
-
Requires-Dist: chopcal; extra == "test"
|
|
23
|
+
Requires-Dist: chopcal>=0.4.0; extra == "test"
|
|
24
24
|
|
|
25
25
|
# restage
|
|
26
26
|
Semiautomatic two-stage McCode simulations for parameter scans.
|
|
@@ -9,7 +9,7 @@ dependencies = [
|
|
|
9
9
|
'platformdirs>=3.11',
|
|
10
10
|
'confuse',
|
|
11
11
|
'psutil>=5.9.6',
|
|
12
|
-
'mccode-antlr[hdf5]>=0.
|
|
12
|
+
'mccode-antlr[hdf5]>=0.16.1',
|
|
13
13
|
]
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
license = {text = "BSD-3-Clause"}
|
|
@@ -30,7 +30,7 @@ classifiers = [
|
|
|
30
30
|
dynamic = ["version"]
|
|
31
31
|
|
|
32
32
|
[project.optional-dependencies]
|
|
33
|
-
test = ["pytest", "chopcal"]
|
|
33
|
+
test = ["pytest", "chopcal>=0.4.0"]
|
|
34
34
|
|
|
35
35
|
[project.scripts]
|
|
36
36
|
splitrun = "restage.splitrun:entrypoint"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: restage
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Author-email: Gregory Tucker <gregory.tucker@ess.eu>
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
Classifier: License :: OSI Approved :: BSD License
|
|
@@ -17,10 +17,10 @@ Requires-Dist: zenlog>=1.1
|
|
|
17
17
|
Requires-Dist: platformdirs>=3.11
|
|
18
18
|
Requires-Dist: confuse
|
|
19
19
|
Requires-Dist: psutil>=5.9.6
|
|
20
|
-
Requires-Dist: mccode-antlr[hdf5]>=0.
|
|
20
|
+
Requires-Dist: mccode-antlr[hdf5]>=0.16.1
|
|
21
21
|
Provides-Extra: test
|
|
22
22
|
Requires-Dist: pytest; extra == "test"
|
|
23
|
-
Requires-Dist: chopcal; extra == "test"
|
|
23
|
+
Requires-Dist: chopcal>=0.4.0; extra == "test"
|
|
24
24
|
|
|
25
25
|
# restage
|
|
26
26
|
Semiautomatic two-stage McCode simulations for parameter scans.
|
|
@@ -137,8 +137,11 @@ class BIFROSTEnergyTestCase(unittest.TestCase):
|
|
|
137
137
|
kv = {'order': order, 'time': time, 'ei': energy}
|
|
138
138
|
translated = bifrost_translate_energy_to_chopper_parameters(kv)
|
|
139
139
|
from_mcstas = mcstas_bifrost_calculation(energy, 0., time)
|
|
140
|
-
for o, x in zip(
|
|
141
|
-
|
|
140
|
+
for o, x in zip(OLD_CHOPPERS, CHOPPERS):
|
|
141
|
+
# chopcal >= 0.4.0 returns a dictionary of Chopper objects
|
|
142
|
+
chopper = from_mcstas[o]
|
|
143
|
+
for prop in ('speed', 'phase'):
|
|
144
|
+
self.assertAlmostEqual(getattr(chopper, prop), translated[f'{x}{prop}'])
|
|
142
145
|
|
|
143
146
|
|
|
144
147
|
if __name__ == '__main__':
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|