From e1f6d0313c8ea82f10a613cac9e138d2d277fa7b Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Tue, 26 Dec 2023 14:44:33 +0800 Subject: [PATCH] add Pipeline.pmapname --- csst_common/pipeline.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/csst_common/pipeline.py b/csst_common/pipeline.py index 2812a35..4f75f35 100644 --- a/csst_common/pipeline.py +++ b/csst_common/pipeline.py @@ -242,6 +242,14 @@ class Pipeline: def retry(*args, **kwargs): return retry(*args, **kwargs) + @property + def pmapname(self): + """CCDS `.pmap` name (operational context).""" + if self.ccds is not None: + return self.ccds.operational_context + else: + raise ValueError("CCDS client not initialized!") + # class ErrorTrace: # """Write error trace to file.""" -- GitLab