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.
Files changed (29) hide show
  1. {stepss-3.76/stepss.egg-info → stepss-3.77}/PKG-INFO +1 -1
  2. {stepss-3.76 → stepss-3.77}/stepss/__init__.py +15 -20
  3. {stepss-3.76 → stepss-3.77}/stepss/_bundled.py +1 -1
  4. {stepss-3.76 → stepss-3.77}/stepss/cases.py +9 -7
  5. {stepss-3.76 → stepss-3.77}/stepss/libs/lin/ramses.so +0 -0
  6. {stepss-3.76 → stepss-3.77}/stepss/libs/mac/ramses.so +0 -0
  7. {stepss-3.76 → stepss-3.77}/stepss/libs/win/ramses.dll +0 -0
  8. {stepss-3.76 → stepss-3.77/stepss.egg-info}/PKG-INFO +1 -1
  9. {stepss-3.76 → stepss-3.77}/LICENSE.rst +0 -0
  10. {stepss-3.76 → stepss-3.77}/MANIFEST.in +0 -0
  11. {stepss-3.76 → stepss-3.77}/README.rst +0 -0
  12. {stepss-3.76 → stepss-3.77}/setup.cfg +0 -0
  13. {stepss-3.76 → stepss-3.77}/setup.py +0 -0
  14. {stepss-3.76 → stepss-3.77}/stepss/extractor.py +0 -0
  15. {stepss-3.76 → stepss-3.77}/stepss/globals.py +0 -0
  16. {stepss-3.76 → stepss-3.77}/stepss/helios.py +0 -0
  17. {stepss-3.76 → stepss-3.77}/stepss/libs/helios_api.h +0 -0
  18. {stepss-3.76 → stepss-3.77}/stepss/libs/lin/libhelios_api.so +0 -0
  19. {stepss-3.76 → stepss-3.77}/stepss/libs/mac/libhelios_api.dylib +0 -0
  20. {stepss-3.76 → stepss-3.77}/stepss/libs/ramses.h +0 -0
  21. {stepss-3.76 → stepss-3.77}/stepss/libs/win/helios_api.dll +0 -0
  22. {stepss-3.76 → stepss-3.77}/stepss/scripts/__init__.py +0 -0
  23. {stepss-3.76 → stepss-3.77}/stepss/scripts/exec.py +0 -0
  24. {stepss-3.76 → stepss-3.77}/stepss/simulator.py +0 -0
  25. {stepss-3.76 → stepss-3.77}/stepss.egg-info/SOURCES.txt +0 -0
  26. {stepss-3.76 → stepss-3.77}/stepss.egg-info/dependency_links.txt +0 -0
  27. {stepss-3.76 → stepss-3.77}/stepss.egg-info/entry_points.txt +0 -0
  28. {stepss-3.76 → stepss-3.77}/stepss.egg-info/requires.txt +0 -0
  29. {stepss-3.76 → stepss-3.77}/stepss.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stepss
3
- Version: 3.76
3
+ Version: 3.77
4
4
  Summary: Python interface to the STEPSS power-system simulation platform.
5
5
  Home-page: https://stepss.sps-lab.org
6
6
  Author: Petros Aristidou
@@ -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`` when gnuplot is available on the system PATH and runtime
21
- observable plots are therefore enabled; ``False`` otherwise.
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.76'
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 __which, HeliosError
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
- # Detect gnuplot at import time; propagate result to globals so that cases.py
51
- # (which reads __runTimeObs__ from globals at import time) also gets the correct value.
52
- if sys.platform in ('win32', 'cygwin'):
53
- checkGnuplot = __which('gnuplot.exe')
54
- else:
55
- checkGnuplot = __which('gnuplot')
56
- if checkGnuplot is None:
57
- warn("RAMSES: Gnuplot executable could not be found in the system path, so the runtime observables are disabled.")
58
- _globals.__runTimeObs__ = False
59
- else:
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__
@@ -9,5 +9,5 @@ RAMSES_VERSION is also what the stepss version number is built from, so the
9
9
  leading components of __version__ always name the library bundled here.
10
10
  """
11
11
 
12
- RAMSES_VERSION = "v3.76"
12
+ RAMSES_VERSION = "v3.77"
13
13
  HELIOS_VERSION = "v1.4.1"
@@ -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*) — runtime observable descriptors for gnuplot.
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 that will be displayed during the simulation using gnuplot.
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
- if _globals.__runTimeObs__:
430
- if runobs not in self._runobs:
431
- self._runobs.append(runobs)
432
- else:
433
- warnings.warn('Gnuplot is not the path, so runtime observables are disabled.')
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."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stepss
3
- Version: 3.76
3
+ Version: 3.77
4
4
  Summary: Python interface to the STEPSS power-system simulation platform.
5
5
  Home-page: https://stepss.sps-lab.org
6
6
  Author: Petros Aristidou
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