yuclid 0.1.4__py3-none-any.whl → 0.1.5__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.4"
1
+ __version__ = "0.1.5"
yuclid/run.py CHANGED
@@ -1158,12 +1158,23 @@ def normalize_point_setup(point_setup, space):
1158
1158
  # check validity of 'parallel' fields
1159
1159
  for item in normalized_items:
1160
1160
  parallel = item["parallel"]
1161
- if not isinstance(parallel, (bool, list)):
1162
- report(LogLevel.FATAL, "point setup 'parallel' must be a boolean or a list")
1161
+ if not isinstance(parallel, (bool, list)) or any(
1162
+ x for x in parallel if not isinstance(x, str)
1163
+ ):
1164
+ report(
1165
+ LogLevel.FATAL,
1166
+ "point setup 'parallel' must be a boolean or a list of strings",
1167
+ )
1163
1168
  if isinstance(parallel, list):
1164
- wrong = [
1165
- x for x in parallel if not isinstance(x, str) or x not in item["on"]
1166
- ]
1169
+ for x in parallel:
1170
+ if x not in space:
1171
+ report(
1172
+ LogLevel.FATAL,
1173
+ "point setup 'parallel' dimension not in space",
1174
+ x,
1175
+ hint="available dimensions: {}".format(", ".join(space.keys())),
1176
+ )
1177
+ wrong = [x for x in parallel if x + ".values" not in item["on"]]
1167
1178
  if len(wrong) > 0:
1168
1179
  hint = "available dimensions: {}".format(", ".join(item["on"]))
1169
1180
  report(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yuclid
3
- Version: 0.1.4
3
+ Version: 0.1.5
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=Nmswip0IUvJenHIhdfSyTYurDcwWTvOQ8mPDREtwE1o,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=N6zAxYFOOfVGxlY55IIR62jl1HJm4xVQcQjl-a6f_U4,45076
6
+ yuclid/spread.py,sha256=4Ci3nsu8n_dhG-AK2IWHKRElQ8oaGdw14LrgNu79biM,4938
7
+ yuclid-0.1.5.dist-info/METADATA,sha256=T6IqTWuc7V7JPG4xmKezpyE0mbRMGnLB11-jBwGoY5c,673
8
+ yuclid-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ yuclid-0.1.5.dist-info/entry_points.txt,sha256=2AvTtyt5iBnjr6HnjqH_3PeSoq9UzIbT92qivmEbOYA,43
10
+ yuclid-0.1.5.dist-info/top_level.txt,sha256=cL5mb4h_4etwTsqhPvSnoVBXImIzPFGd3rINV1nEjPo,7
11
+ yuclid-0.1.5.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- yuclid/__init__.py,sha256=JMD28FXYHc_TM03visyUSd3UA9FZAaJMRStnfZoq50Y,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=s1BGCmYckO2s5TSoKNCb4llZpUouxyooxtVlbqsQNTs,44641
6
- yuclid/spread.py,sha256=4Ci3nsu8n_dhG-AK2IWHKRElQ8oaGdw14LrgNu79biM,4938
7
- yuclid-0.1.4.dist-info/METADATA,sha256=Qm5Sw-K-L1VGSEJVBwE_C6Ubjp6JNa55SiH7snsWdPM,673
8
- yuclid-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- yuclid-0.1.4.dist-info/entry_points.txt,sha256=2AvTtyt5iBnjr6HnjqH_3PeSoq9UzIbT92qivmEbOYA,43
10
- yuclid-0.1.4.dist-info/top_level.txt,sha256=cL5mb4h_4etwTsqhPvSnoVBXImIzPFGd3rINV1nEjPo,7
11
- yuclid-0.1.4.dist-info/RECORD,,
File without changes