Skip to content

Commit

Permalink
Fixing beds dirs and scanner model.
Browse files Browse the repository at this point in the history
  • Loading branch information
YerePhy committed Mar 26, 2024
1 parent 2f2e43d commit b68ed86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wholebody.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self, cfg: DictConfig):
self.params = self.cfg["params"]
self.config = {k: v for k, v in self.cfg.items() if k != "params"}
self.scanner = self.cfg["params"]["scanner"]
self.scanner_model = self.params.get("scanner")
self.scanner_model = str(self.params["scanner"]["scanner_name"]).lower().replace(" ", "_")
self.cfg_omega.params.scanner.scanner_name = self.scanner_model

# The following lines will read the general, scanner and config parameters
self.sim_type = self.params.get("sim_type")
Expand Down Expand Up @@ -82,8 +83,8 @@ def run(self):
if not exists(bed_dir):
os.makedirs(bed_dir)

self.params['center_slice'] = cs
self.params['output_dir'] = output_name + "/Bed_cs_%s" % cs
self.cfg_omega.params.center_slice = int(cs)
self.cfg_omega.params.output_dir = output_name + "/Bed_cs_%s" % cs

print("Simulating bed %s with center slice %s" % (j, cs))

Expand Down

0 comments on commit b68ed86

Please sign in to comment.