Verified Commit 2baf2b1b authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Fix multi-part snapshots

parent a11c6765
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ class Engine:
                if len(snap_map) > 0:
                    if partition_short not in snap_map:
                        raise RuntimeError(f"Snapshot '{partition_short}.npz' not in {sim_config.replay[0]}")
                    replay_files = snap_map[partition_short]
                    replay_files = [snap_map[partition_short]]
                else:
                    replay_files = sim_config.replay
            else:
+5 −1
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ class TelemetryArgs(RAPSBaseModel):
            raise ValueError("Either --live or --replay is required")
        return self

    @property
    def system_name(self):
        return self.system


shortcuts = {
    "replay": "f",
@@ -208,7 +212,7 @@ class Telemetry:
            for file in files:
                print(f"Loading {file}")
                new_data, args_from_file = self.load_snapshot(file)
                print(f"File was generated with: --system {args_from_file.system}")
                print(f"File was generated with: --system {args_from_file.system_name}")
                if not data:
                    data = new_data
                else: