Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisimmm #28

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/pysimmmulator/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,17 @@ def __init__(self):
self.final_frames = []
self.rois = []

def store_outputs(self, final_df: pd.DataFrame, channel_roi: dict):
def stash_outputs(self, final_df: pd.DataFrame, channel_roi: dict):
self.final_frames.append(final_df)
self.rois.append(channel_roi)

def get_data(self):
return self.data

def run(self, config: dict, runs: int) -> None:
for run in range(runs):
frame, roi = self.run_with_config(config=config)
self.store_outputs(final_df=frame, channel_roi=roi)
self.stash_outputs(final_df=frame, channel_roi=roi)
logger.info(f"{run + 1}/{runs} completed")
self.data = zip(self.final_frames, self.rois)
logger.info(f"{runs} runs complete and stored")