ReForma 0.26__tar.gz → 0.28__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ReForma
3
- Version: 0.26
3
+ Version: 0.28
4
4
  Summary: Python bindings for the RePA/ReForma probabilistic automaton tool
5
5
  Author-email: Joshua Dourado <joshuadourado@ua.pt>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ReForma
3
- Version: 0.26
3
+ Version: 0.28
4
4
  Summary: Python bindings for the RePA/ReForma probabilistic automaton tool
5
5
  Author-email: Joshua Dourado <joshuadourado@ua.pt>
6
6
  License: MIT
@@ -10,6 +10,7 @@ reforma/__init__.py
10
10
  reforma/client.py
11
11
  reforma/jar_bridge.py
12
12
  reforma/model.py
13
+ reforma/bin/RePATool.jar
13
14
  reforma/bin/js/cytoscape-dagre.js
14
15
  reforma/bin/js/cytoscape.min.js
15
16
  reforma/bin/js/dagre.js
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ReForma"
7
- version = "0.26"
7
+ version = "0.28"
8
8
  description = "Python bindings for the RePA/ReForma probabilistic automaton tool"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
Binary file
@@ -869,15 +869,16 @@ class ReForma:
869
869
  enabled: list[Transition] = []
870
870
  variables: dict[str, int] = {}
871
871
 
872
- import re
872
+ import re
873
873
 
874
874
  for line in lines:
875
875
  if line.startswith("Estado Atual:"):
876
- parts = line.split(":", 1)[1].strip()
877
- current_states = [s.strip() for s in parts.split(",")]
876
+ st_parts = line.split(":", 1)[1].strip()
877
+ current_states = [s.strip() for s in st_parts.split(",")]
878
878
 
879
879
  elif line.startswith("Variaveis:"):
880
- matches = re.finditer(r"([a-zA-Z0-9_]+)\s*=\s*(?:VInt\(\s*([^,)]+)|VFloat\(\s*([^,)]+)|VBool\(\s*([^,)]+)|([^,]+))", parts)
880
+ var_parts = line.split(":", 1)[1].strip()
881
+ matches = re.finditer(r"([a-zA-Z0-9_]+)\s*=\s*(?:VInt\(\s*([^,)]+)|VFloat\(\s*([^,)]+)|VBool\(\s*([^,)]+)|([^,]+))", var_parts)
881
882
 
882
883
  for m in matches:
883
884
  k = m.group(1)
@@ -912,7 +913,6 @@ class ReForma:
912
913
  raw={},
913
914
  )
914
915
 
915
-
916
916
  def _get_local_js(filename: str) -> str:
917
917
  """Reads the local JS file to be injected into HTML."""
918
918
  base_dir = os.path.dirname(__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