Skip to content

Commit

Permalink
#266: now using correct phase IDs when reading from log to populate p…
Browse files Browse the repository at this point in the history
…hases
  • Loading branch information
ppebay committed Jun 24, 2022
1 parent cb839fd commit 7d0f93a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lbaf/Applications/LBAF_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def main(self):
for phase_id in self.params.phase_ids:
# Create a phase and populate it
if "file_suffix" in self.params.__dict__:
phase = Phase(self.logger, 0, self.params.file_suffix)
phase = Phase(self.logger, phase_id, self.params.file_suffix)
else:
phase = Phase(self.logger, 0)
phase = Phase(self.logger, phase_id)
phase.populate_from_log(
self.params.n_ranks,
phase_id,
Expand Down
3 changes: 2 additions & 1 deletion src/lbaf/Model/lbsPhase.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def populate_from_samplers(self, n_ranks, n_objects, t_sampler, v_sampler, c_deg
def populate_from_log(self, n_ranks, t_s, basename):
""" Populate this phase by reading in a load profile from log files."""
# Instantiate VT load reader
reader = LoadReader(basename, self.__logger, file_suffix=self.__file_suffix)
reader = LoadReader(
basename, self.__logger, file_suffix=self.__file_suffix)

# Populate phase with reader output
self.__ranks = reader.read_iteration(n_ranks, t_s)
Expand Down

0 comments on commit 7d0f93a

Please sign in to comment.