Skip to content

Commit

Permalink
Merge pull request #23 from jameshcorbett/update-sched-changes
Browse files Browse the repository at this point in the history
DWS: update JGF writer for fluxion changes
  • Loading branch information
mergify[bot] authored Aug 18, 2022
2 parents 76f5c9a + bfdcd26 commit 1cb49da
Show file tree
Hide file tree
Showing 2 changed files with 1,208 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cmd/flux-dws2jgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ def _encode_rank(self, parent, rank, children, hName):
True,
"",
1,
[],
hPath,
)
edg = ElCapResourceRelationshipV1(parent.get_id(), vtx.get_id())
self._add_and_tick_uniq_id(vtx, edg)
for key, val in children.items():
for i in IDset(val):
self._encode_child(vtx.get_id(), hPath, rank, str(key), i)
self._encode_child(vtx.get_id(), hPath, rank, str(key), i, {})

def _encode_nnf(self, parent, global_nnf, nnf):
res_type = "nnf"
Expand All @@ -87,6 +88,7 @@ def _encode_nnf(self, parent, global_nnf, nnf):
True,
"",
1,
[],
f"{parent.path}/{res_name}",
)
edg = ElCapResourceRelationshipV1(parent.get_id(), vtx.get_id())
Expand All @@ -111,6 +113,7 @@ def _encode_rack(self, parent, global_nnf, nnf):
True,
"",
1,
[],
f"{parent.path}/{res_name}",
)
edg = ElCapResourceRelationshipV1(parent.get_id(), vtx.get_id())
Expand All @@ -133,6 +136,7 @@ def _encode(self):
True,
"",
1,
[],
"/ElCapitan0",
)
self._add_and_tick_uniq_id(vtx)
Expand All @@ -147,6 +151,7 @@ def _encode(self):
True,
"",
1,
[],
"/ElCapitan0/globalnnf0",
)
edg = ElCapResourceRelationshipV1(vtx.get_id(), global_nnf.get_id())
Expand Down
Loading

0 comments on commit 1cb49da

Please sign in to comment.