yuclid 0.1.7__py3-none-any.whl → 0.1.8__py3-none-any.whl

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.
yuclid/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.7"
1
+ __version__ = "0.1.8"
yuclid/run.py CHANGED
@@ -25,7 +25,7 @@ def substitute_point_yvars(x, point_map, point_id):
25
25
  y = re.sub(name_pattern, lambda m: str(point_map[m.group(1)]["name"]), y)
26
26
  if point_id is not None:
27
27
  value_pattern = r"\$\{yuclid\.\@\}"
28
- y = re.sub(value_pattern, lambda m: f"{point_id}.tmp", y)
28
+ y = re.sub(value_pattern, lambda m: f"{point_id}", y)
29
29
  return y
30
30
 
31
31
 
@@ -72,7 +72,6 @@ def validate_global_yvars(space, exps):
72
72
  )
73
73
  for dim in global_matches:
74
74
  if dim not in space:
75
- breakpoint()
76
75
  report(LogLevel.FATAL, f"invalid variable 'yuclid.{dim}'", exp)
77
76
 
78
77
 
@@ -415,7 +414,7 @@ def normalize_data(json_data):
415
414
  "trial references unknown metrics",
416
415
  ", ".join(trial["metrics"]),
417
416
  hint="available metrics: {}".format(
418
- ", ".join([m["name"] for m in normalized["metrics"]])
417
+ ", ".join({m["name"] for m in normalized["metrics"]})
419
418
  ),
420
419
  )
421
420
 
@@ -765,7 +764,7 @@ def run_point_trials(settings, data, execution, f, i, point):
765
764
 
766
765
  if command_output.returncode != 0:
767
766
  hint = "check the following files for more details:\n"
768
- hint += f"{point_id}.out\n{point_id}.err\n{point_id}.tmp"
767
+ hint += f"{point_id}.out\n{point_id}.err"
769
768
  report(
770
769
  LogLevel.ERROR,
771
770
  point_to_string(point),
@@ -787,7 +786,7 @@ def run_point_trials(settings, data, execution, f, i, point):
787
786
 
788
787
  def complain():
789
788
  hint = "check the following files for more details:\n"
790
- hint += f"{point_id}.out\n{point_id}.err\n{point_id}.tmp"
789
+ hint += f"{point_id}.out\n{point_id}.err\n"
791
790
  report(
792
791
  LogLevel.ERROR,
793
792
  point_to_string(point),
@@ -1222,7 +1221,7 @@ def run_experiments(settings, data, order, env, preset_name=None):
1222
1221
 
1223
1222
  def validate_settings(data, settings):
1224
1223
  if settings["metrics"]:
1225
- valid = [x["name"] for x in data["metrics"]]
1224
+ valid = {x["name"] for x in data["metrics"]}
1226
1225
  wrong = [m for m in settings["metrics"] if m not in valid]
1227
1226
  if len(wrong) > 0:
1228
1227
  hint = "available metrics: {}".format(", ".join(valid))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yuclid
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Run experiments and interactively plot results across combinations of user-specified dimensions
5
5
  Author-email: Federico Sossai <federico.sossai@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/fsossai/yuclid
@@ -0,0 +1,11 @@
1
+ yuclid/__init__.py,sha256=1CUarGSwycOh0GKIcMutmmKE9j9E4B6-Jji1lJFY5Aw,21
2
+ yuclid/cli.py,sha256=YZzxJty5wlUhCOEELvEcJeQb_lQ1Qc89RG4_s5IyKWU,6224
3
+ yuclid/log.py,sha256=GR_FVfNroumuonKguAPd6H1rKjxJKRc8tAS2sVNTbzE,1655
4
+ yuclid/plot.py,sha256=R6IXw6hHuXYFx1MjTKLCIqBfdNORStVEoDidAr-jEuE,29697
5
+ yuclid/run.py,sha256=wVa87CWV2w9bUXG76mQpKh-MG0xFc1R4vKKb1j1Qt1s,44891
6
+ yuclid/spread.py,sha256=4Ci3nsu8n_dhG-AK2IWHKRElQ8oaGdw14LrgNu79biM,4938
7
+ yuclid-0.1.8.dist-info/METADATA,sha256=kthBAHmTsA6KC1vzVFCWbb8lT_tOET6V-5Oh0JuwdQM,673
8
+ yuclid-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ yuclid-0.1.8.dist-info/entry_points.txt,sha256=2AvTtyt5iBnjr6HnjqH_3PeSoq9UzIbT92qivmEbOYA,43
10
+ yuclid-0.1.8.dist-info/top_level.txt,sha256=cL5mb4h_4etwTsqhPvSnoVBXImIzPFGd3rINV1nEjPo,7
11
+ yuclid-0.1.8.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- yuclid/__init__.py,sha256=GmypIHlw9-BaSEaoucCIwm0ut1DUut0hUvsyTCr17qk,21
2
- yuclid/cli.py,sha256=YZzxJty5wlUhCOEELvEcJeQb_lQ1Qc89RG4_s5IyKWU,6224
3
- yuclid/log.py,sha256=GR_FVfNroumuonKguAPd6H1rKjxJKRc8tAS2sVNTbzE,1655
4
- yuclid/plot.py,sha256=R6IXw6hHuXYFx1MjTKLCIqBfdNORStVEoDidAr-jEuE,29697
5
- yuclid/run.py,sha256=0zrQS6b_o-NkB1ijRPkSP4hI_qh3SkenXK2Oy72DK4g,44954
6
- yuclid/spread.py,sha256=4Ci3nsu8n_dhG-AK2IWHKRElQ8oaGdw14LrgNu79biM,4938
7
- yuclid-0.1.7.dist-info/METADATA,sha256=uV-39IZ2q1xV5dLMu_v99dMfIh9-h_dRKAOlfASMKS4,673
8
- yuclid-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- yuclid-0.1.7.dist-info/entry_points.txt,sha256=2AvTtyt5iBnjr6HnjqH_3PeSoq9UzIbT92qivmEbOYA,43
10
- yuclid-0.1.7.dist-info/top_level.txt,sha256=cL5mb4h_4etwTsqhPvSnoVBXImIzPFGd3rINV1nEjPo,7
11
- yuclid-0.1.7.dist-info/RECORD,,
File without changes