Skip to content

Commit 7ffa2c9

Browse files
committed
[FFM] Bugfix for incorrect reservations coming out of model
1 parent 1f1bdbf commit 7ffa2c9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/make_pmappings_from_templates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def shift_reservations_by_null_loop_indices(
6969
if len(mappings.columns) != len(mappings.columns.unique()):
7070
shift_reservations_by_null_loop_indices(prev, null_loop_indices)
7171
raise ValueError(f"Duplicate columns: {mappings.columns}")
72-
assert len(mappings.columns) == len(mappings.columns.unique())
7372
return mappings
7473

7574

accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/run_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def run_model(
123123
if memory not in job.memories_track_all:
124124
continue
125125
running_total = 0
126-
for n_loop in n_loop_options:
126+
for n_loop in sorted(n_loop_options):
127127
if n_loop in occupancies:
128128
running_total += occupancies[n_loop]
129129
df[nameloop2col(memory, n_loop)] = (

0 commit comments

Comments
 (0)