ReForma 0.1.2__tar.gz → 0.1.3__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.
- {reforma-0.1.2 → reforma-0.1.3}/PKG-INFO +1 -1
- {reforma-0.1.2 → reforma-0.1.3}/ReForma.egg-info/PKG-INFO +1 -1
- {reforma-0.1.2 → reforma-0.1.3}/pyproject.toml +1 -1
- {reforma-0.1.2 → reforma-0.1.3}/reforma/model.py +3 -3
- {reforma-0.1.2 → reforma-0.1.3}/MANIFEST.in +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/README.md +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/ReForma.egg-info/SOURCES.txt +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/ReForma.egg-info/dependency_links.txt +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/ReForma.egg-info/requires.txt +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/ReForma.egg-info/top_level.txt +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/reforma/__init__.py +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/reforma/bin/RePATool.jar +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/reforma/client.py +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/reforma/jar_bridge.py +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/setup.cfg +0 -0
- {reforma-0.1.2 → reforma-0.1.3}/tests/test_reforma.py +0 -0
|
@@ -77,7 +77,7 @@ class SimulationState:
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
@dataclass
|
|
80
|
-
class
|
|
80
|
+
class ReFormaModel:
|
|
81
81
|
"""
|
|
82
82
|
Holds the source code of a loaded reforma model and metadata.
|
|
83
83
|
"""
|
|
@@ -85,12 +85,12 @@ class reformaModel:
|
|
|
85
85
|
name: str = ""
|
|
86
86
|
|
|
87
87
|
@classmethod
|
|
88
|
-
def from_file(cls, path: str) -> "
|
|
88
|
+
def from_file(cls, path: str) -> "ReFormaModel":
|
|
89
89
|
with open(path, "r", encoding="utf-8") as f:
|
|
90
90
|
source = f.read()
|
|
91
91
|
name = path.split("/")[-1].replace(".r", "")
|
|
92
92
|
return cls(source=source, name=name)
|
|
93
93
|
|
|
94
94
|
@classmethod
|
|
95
|
-
def from_string(cls, source: str, name: str = "inline") -> "
|
|
95
|
+
def from_string(cls, source: str, name: str = "inline") -> "ReFormaModel":
|
|
96
96
|
return cls(source=source, name=name)
|
|
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
|