stepss 3.76__tar.gz → 3.77__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.
- {stepss-3.76/stepss.egg-info → stepss-3.77}/PKG-INFO +1 -1
- {stepss-3.76 → stepss-3.77}/stepss/__init__.py +15 -20
- {stepss-3.76 → stepss-3.77}/stepss/_bundled.py +1 -1
- {stepss-3.76 → stepss-3.77}/stepss/cases.py +9 -7
- {stepss-3.76 → stepss-3.77}/stepss/libs/lin/ramses.so +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/mac/ramses.so +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/win/ramses.dll +0 -0
- {stepss-3.76 → stepss-3.77/stepss.egg-info}/PKG-INFO +1 -1
- {stepss-3.76 → stepss-3.77}/LICENSE.rst +0 -0
- {stepss-3.76 → stepss-3.77}/MANIFEST.in +0 -0
- {stepss-3.76 → stepss-3.77}/README.rst +0 -0
- {stepss-3.76 → stepss-3.77}/setup.cfg +0 -0
- {stepss-3.76 → stepss-3.77}/setup.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/extractor.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/globals.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/helios.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/helios_api.h +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/lin/libhelios_api.so +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/mac/libhelios_api.dylib +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/ramses.h +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/libs/win/helios_api.dll +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/scripts/__init__.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/scripts/exec.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss/simulator.py +0 -0
- {stepss-3.76 → stepss-3.77}/stepss.egg-info/SOURCES.txt +0 -0
- {stepss-3.76 → stepss-3.77}/stepss.egg-info/dependency_links.txt +0 -0
- {stepss-3.76 → stepss-3.77}/stepss.egg-info/entry_points.txt +0 -0
- {stepss-3.76 → stepss-3.77}/stepss.egg-info/requires.txt +0 -0
- {stepss-3.76 → stepss-3.77}/stepss.egg-info/top_level.txt +0 -0
|
@@ -17,12 +17,13 @@ Public API exported by this package:
|
|
|
17
17
|
|
|
18
18
|
Module-level flags set at import time:
|
|
19
19
|
|
|
20
|
-
- ``__runTimeObs__`` - ``True
|
|
21
|
-
|
|
20
|
+
- ``__runTimeObs__`` - always ``True``. Run-time observables no longer depend on
|
|
21
|
+
anything being installed, so this flag has nothing left to report. It is kept
|
|
22
|
+
because it is public, and it is deprecated: do not branch on it.
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
__package_name__ = "stepss"
|
|
25
|
-
__version__ = '3.
|
|
26
|
+
__version__ = '3.77'
|
|
26
27
|
__author__ = "Petros Aristidou"
|
|
27
28
|
__copyright__ = "Petros Aristidou"
|
|
28
29
|
__license__ = "Apache-2.0"
|
|
@@ -31,12 +32,9 @@ __email__ = "apetros@pm.me"
|
|
|
31
32
|
__url__ = "https://stepss.sps-lab.org"
|
|
32
33
|
__status__ = "5 - Production/Stable"
|
|
33
34
|
|
|
34
|
-
import sys
|
|
35
|
-
from warnings import warn
|
|
36
|
-
|
|
37
35
|
from . import globals as _globals
|
|
38
36
|
from .cases import cfg
|
|
39
|
-
from .globals import
|
|
37
|
+
from .globals import HeliosError
|
|
40
38
|
from .simulator import sim
|
|
41
39
|
from .extractor import extractor, curplot, cur
|
|
42
40
|
from . import helios
|
|
@@ -47,17 +45,14 @@ from ._bundled import HELIOS_VERSION as __helios_version__
|
|
|
47
45
|
__all__ = ["cfg", "sim", "extractor", "cur", "curplot", "helios",
|
|
48
46
|
"HeliosSession", "HeliosError"]
|
|
49
47
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_globals.__runTimeObs__ = True
|
|
61
|
-
|
|
62
|
-
# Re-export the (now-updated) flag under the expected public name.
|
|
48
|
+
# No gnuplot probe. This package has always plotted with matplotlib, through
|
|
49
|
+
# curplot; the probe existed because RAMSES used to draw run-time observables
|
|
50
|
+
# itself by piping to gnuplot, so a machine without gnuplot could not produce
|
|
51
|
+
# them. RAMSES no longer does that: it writes the observable file and calls
|
|
52
|
+
# nothing, so gnuplot's presence has no bearing on anything here.
|
|
53
|
+
#
|
|
54
|
+
# Leaving the probe in place was not merely untidy. addRunObs() gated on this
|
|
55
|
+
# flag and became a silent no-op when the probe failed, so every user without
|
|
56
|
+
# gnuplot installed lost run-time observables for a reason that no longer
|
|
57
|
+
# existed. Kept as a name, always True, because it is documented public API.
|
|
63
58
|
__runTimeObs__ = _globals.__runTimeObs__
|
|
@@ -36,7 +36,7 @@ class cfg(object):
|
|
|
36
36
|
- ``_disc`` (*list of str*) — path for the discrete events trace output.
|
|
37
37
|
- ``_obs`` (*list of str*) — observables definition file (.dat or .obs).
|
|
38
38
|
- ``_trj`` (*list of str*) — Fortran binary trajectory output file (.trj).
|
|
39
|
-
- ``_runobs`` (*list of str*)
|
|
39
|
+
- ``_runobs`` (*list of str*): runtime observable descriptors.
|
|
40
40
|
- ``_out`` (*list of str*) — execution log / output trace file.
|
|
41
41
|
|
|
42
42
|
:Example:
|
|
@@ -393,7 +393,7 @@ class cfg(object):
|
|
|
393
393
|
def addRunObs(self, runobs):
|
|
394
394
|
"""Add runtime observable.
|
|
395
395
|
|
|
396
|
-
This defines some states
|
|
396
|
+
This defines some states the engine records while the simulation runs.
|
|
397
397
|
|
|
398
398
|
:param str runobs: Description of runtime observable as defined in the RAMSES userguide
|
|
399
399
|
|
|
@@ -426,11 +426,13 @@ class cfg(object):
|
|
|
426
426
|
|
|
427
427
|
|
|
428
428
|
"""
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
429
|
+
# Unconditional. This used to be gated on a gnuplot PATH probe, from
|
|
430
|
+
# when RAMSES drew run-time observables itself by piping to gnuplot, and
|
|
431
|
+
# the else branch made this method a silent no-op for anyone without
|
|
432
|
+
# gnuplot installed. The engine writes the observable file and calls
|
|
433
|
+
# nothing, so there is no longer a condition to test.
|
|
434
|
+
if runobs not in self._runobs:
|
|
435
|
+
self._runobs.append(runobs)
|
|
434
436
|
|
|
435
437
|
def clearRunObs(self):
|
|
436
438
|
"""Remove all runtime observable descriptors from the case."""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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
|