Commit 73d1dd0a authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

compatible with CPIC level0_id

parent a1f188b5
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -122,4 +122,8 @@ class File:

    @property
    def level0_id(self):
        if self.instrument == "MSC":
            return self.obs_id + self.detector
        if self.instrument == "CPIC":
            return self.obs_id + self.project
        raise ValueError(f"Unmatched instrument: {self.instrument}")