hpcflow-new2 0.2.0a161__py3-none-any.whl → 0.2.0a162__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.
- hpcflow/_version.py +1 -1
- hpcflow/sdk/core/element.py +3 -1
- hpcflow/tests/unit/test_element.py +63 -0
- {hpcflow_new2-0.2.0a161.dist-info → hpcflow_new2-0.2.0a162.dist-info}/METADATA +1 -1
- {hpcflow_new2-0.2.0a161.dist-info → hpcflow_new2-0.2.0a162.dist-info}/RECORD +7 -7
- {hpcflow_new2-0.2.0a161.dist-info → hpcflow_new2-0.2.0a162.dist-info}/WHEEL +0 -0
- {hpcflow_new2-0.2.0a161.dist-info → hpcflow_new2-0.2.0a162.dist-info}/entry_points.txt +0 -0
hpcflow/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.2.
|
1
|
+
__version__ = "0.2.0a162"
|
hpcflow/sdk/core/element.py
CHANGED
@@ -244,7 +244,9 @@ class ElementResources(JSONLike):
|
|
244
244
|
sub_dicts = ("scheduler_args", "shell_args")
|
245
245
|
dct = {k: copy.deepcopy(v) for k, v in self.__dict__.items() if k not in exclude}
|
246
246
|
if "options" in dct.get("scheduler_args", []):
|
247
|
-
dct["scheduler_args"]["options"] =
|
247
|
+
dct["scheduler_args"]["options"] = _hash_dict(
|
248
|
+
dct["scheduler_args"]["options"]
|
249
|
+
)
|
248
250
|
|
249
251
|
for k in sub_dicts:
|
250
252
|
if k in dct:
|
@@ -603,3 +603,66 @@ def test_element_get_group_sequence_obj(new_null_config, tmp_path):
|
|
603
603
|
8,
|
604
604
|
9,
|
605
605
|
]
|
606
|
+
|
607
|
+
|
608
|
+
def test_element_resources_get_jobscript_hash_equal_empty():
|
609
|
+
assert (
|
610
|
+
hf.ElementResources().get_jobscript_hash()
|
611
|
+
== hf.ElementResources().get_jobscript_hash()
|
612
|
+
)
|
613
|
+
|
614
|
+
|
615
|
+
def test_element_resources_get_jobscript_hash_unequal_num_cores():
|
616
|
+
assert (
|
617
|
+
hf.ElementResources(num_cores=1).get_jobscript_hash()
|
618
|
+
!= hf.ElementResources(num_cores=2).get_jobscript_hash()
|
619
|
+
)
|
620
|
+
|
621
|
+
|
622
|
+
def test_element_resources_get_jobscript_hash_equal_num_cores():
|
623
|
+
assert (
|
624
|
+
hf.ElementResources(num_cores=1).get_jobscript_hash()
|
625
|
+
== hf.ElementResources(num_cores=1).get_jobscript_hash()
|
626
|
+
)
|
627
|
+
|
628
|
+
|
629
|
+
def test_element_resources_get_jobscript_hash_unequal_scheduler_args_empty():
|
630
|
+
|
631
|
+
assert (
|
632
|
+
hf.ElementResources().get_jobscript_hash()
|
633
|
+
!= hf.ElementResources(
|
634
|
+
scheduler_args={"options": {"--time": "01:00:00"}}
|
635
|
+
).get_jobscript_hash()
|
636
|
+
)
|
637
|
+
|
638
|
+
|
639
|
+
def test_element_resources_get_jobscript_hash_equal_non_truthy_scheduler_args():
|
640
|
+
|
641
|
+
assert (
|
642
|
+
hf.ElementResources().get_jobscript_hash()
|
643
|
+
== hf.ElementResources(scheduler_args={}).get_jobscript_hash()
|
644
|
+
)
|
645
|
+
|
646
|
+
|
647
|
+
def test_element_resources_get_jobscript_hash_unequal_scheduler_args_diff_options():
|
648
|
+
|
649
|
+
assert (
|
650
|
+
hf.ElementResources(
|
651
|
+
scheduler_args={"options": {"--time": "02:00:00"}}
|
652
|
+
).get_jobscript_hash()
|
653
|
+
!= hf.ElementResources(
|
654
|
+
scheduler_args={"options": {"--partition": "MULTICORE"}}
|
655
|
+
).get_jobscript_hash()
|
656
|
+
)
|
657
|
+
|
658
|
+
|
659
|
+
def test_element_resources_get_jobscript_hash_unequal_scheduler_args_same_options():
|
660
|
+
|
661
|
+
assert (
|
662
|
+
hf.ElementResources(
|
663
|
+
scheduler_args={"options": {"--time": "02:00:00"}}
|
664
|
+
).get_jobscript_hash()
|
665
|
+
!= hf.ElementResources(
|
666
|
+
scheduler_args={"options": {"--time": "01:00:00"}}
|
667
|
+
).get_jobscript_hash()
|
668
|
+
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
hpcflow/__init__.py,sha256=WIETuRHeOp2SqUqHUzpjQ-lk9acbYv-6aWOhZPRdlhs,64
|
2
2
|
hpcflow/__pyinstaller/__init__.py,sha256=YOzBlPSck6slucv6lJM9K80JtsJWxXRL00cv6tRj3oc,98
|
3
3
|
hpcflow/__pyinstaller/hook-hpcflow.py,sha256=SeMopsPkhCyd9gqIrzwFNRj3ZlkUlUYl-74QYz61mo4,1089
|
4
|
-
hpcflow/_version.py,sha256=
|
4
|
+
hpcflow/_version.py,sha256=F6Hs8T_jFERXgHCaaDirBoJpTlltPgUsSSt4BxvexP8,26
|
5
5
|
hpcflow/app.py,sha256=d-kgfnZNlqlCi2H8bK26714brD_u3ibN3FaEZgjF9aA,1332
|
6
6
|
hpcflow/cli.py,sha256=G2J3D9v6MnMWOWMMWK6UEKLn_6wnV9lT_qygEBBxg-I,66
|
7
7
|
hpcflow/data/demo_data_manifest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -47,7 +47,7 @@ hpcflow/sdk/core/__init__.py,sha256=GcIklEsXy3M5PWpmxyhd2KoI0u6HjXRIjD_aR1bgRjo,
|
|
47
47
|
hpcflow/sdk/core/actions.py,sha256=539vu9ts5u5Poah6-ZGOEANrb58NPEbhhoVlS7ajayE,74544
|
48
48
|
hpcflow/sdk/core/command_files.py,sha256=mo7JzKko2WQ_DOFbJFyuvnnRN3pj1hiqPe7tRNSNDV4,18515
|
49
49
|
hpcflow/sdk/core/commands.py,sha256=-Tiu7zVVwWr1xiTXVB9oH3E4g09ebRRtHSRrMdFDCRY,12060
|
50
|
-
hpcflow/sdk/core/element.py,sha256=
|
50
|
+
hpcflow/sdk/core/element.py,sha256=Ea3PHFs4RIAHUPQ_zblt2G0m2e__sH_0q3MnTWCWmW8,45704
|
51
51
|
hpcflow/sdk/core/environment.py,sha256=DGUz1NvliKh6opP0IueGHD69rn_8wFLhDsq6kAmEgM4,4849
|
52
52
|
hpcflow/sdk/core/errors.py,sha256=AaJWGyKUuHlAAP2LcVIg7D7aw2noL06G4OzP89sUcxU,8712
|
53
53
|
hpcflow/sdk/core/json_like.py,sha256=LRZsUd1tn8zXC8fESeiXs7Eko-VdnB8zcXiqixKVcZM,18874
|
@@ -121,7 +121,7 @@ hpcflow/tests/unit/test_cli.py,sha256=9oQZOlX0z5LC4e2JFLuIgGnUXgmR2RCAtbXR5XRwqJ
|
|
121
121
|
hpcflow/tests/unit/test_command.py,sha256=qf2z0wofxCisza90HMDlb81wsNhByXRAOPMfmRv6paA,22422
|
122
122
|
hpcflow/tests/unit/test_config.py,sha256=yW_tCjCaReCud7Lv4-CLt8mZ7XoaGLGxjozJQoZYZ2c,2507
|
123
123
|
hpcflow/tests/unit/test_config_file.py,sha256=eB1wJimxk7v4vYtwQ1kwPcExdjcN1q-rdsVOeYHN3dQ,4375
|
124
|
-
hpcflow/tests/unit/test_element.py,sha256=
|
124
|
+
hpcflow/tests/unit/test_element.py,sha256=nOfTeXzsF6Pi9PUgP3gYvip3Kj0WkOlh5rLyFSHSu1E,20418
|
125
125
|
hpcflow/tests/unit/test_element_iteration.py,sha256=K0oxoDSSKy2JAcAhhE_l63M3u1cus1SsVc5LR2jLe0k,1292
|
126
126
|
hpcflow/tests/unit/test_element_set.py,sha256=-aPBcHgubEMvI-lFfKatGm6jZqFfs8zQY9PFAW-Zw9o,2045
|
127
127
|
hpcflow/tests/unit/test_input_source.py,sha256=QKAqIpMk-idbSvoWMhjFLroXzBtsWFL4yEG3Frkvq70,20467
|
@@ -147,7 +147,7 @@ hpcflow/tests/unit/test_workflow_template.py,sha256=EItRqUyXpU2z_z1rvpRqa848YOkX
|
|
147
147
|
hpcflow/tests/workflows/test_jobscript.py,sha256=9sp1o0g72JZbv2QlOl5v7wCZEFjotxiIKGNUxVaFgaA,724
|
148
148
|
hpcflow/tests/workflows/test_workflows.py,sha256=xai6FRtGqG4lStJk6KmsqPUSuvqs9FrsBOxMVALshIs,13400
|
149
149
|
hpcflow/viz_demo.ipynb,sha256=1QdnVsk72vihv2L6hOGyk318uEa22ZSgGxQCa7hW2oo,6238
|
150
|
-
hpcflow_new2-0.2.
|
151
|
-
hpcflow_new2-0.2.
|
152
|
-
hpcflow_new2-0.2.
|
153
|
-
hpcflow_new2-0.2.
|
150
|
+
hpcflow_new2-0.2.0a162.dist-info/METADATA,sha256=TlloOGkT8R0Pn-Ss1OUHKTVNajM0euAbZ-aJ49zzwKg,2473
|
151
|
+
hpcflow_new2-0.2.0a162.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
152
|
+
hpcflow_new2-0.2.0a162.dist-info/entry_points.txt,sha256=aoGtCnFdfPcXfBdu2zZyMOJoz6fPgdR0elqsgrE-USU,106
|
153
|
+
hpcflow_new2-0.2.0a162.dist-info/RECORD,,
|
File without changes
|
File without changes
|