Commit e1f6d031 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add Pipeline.pmapname

parent ceabf442
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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."""