Commit 922706e5 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use string instead of lambda functions for custom ref

parent eef7fc6b
...@@ -440,7 +440,7 @@ class CsstMsDataManager: ...@@ -440,7 +440,7 @@ class CsstMsDataManager:
else: else:
return self.path_aux.format(detector, "bias") return self.path_aux.format(detector, "bias")
else: else:
return self.custom_bias(detector) return self.custom_bias.format(detector)
def get_dark(self, detector=6): def get_dark(self, detector=6):
""" get dark data """ """ get dark data """
...@@ -450,7 +450,7 @@ class CsstMsDataManager: ...@@ -450,7 +450,7 @@ class CsstMsDataManager:
else: else:
return self.path_aux.format(detector, "dark") return self.path_aux.format(detector, "dark")
else: else:
return self.custom_dark(detector) return self.custom_dark.format(detector)
def get_flat(self, detector=6): def get_flat(self, detector=6):
""" get flat data """ """ get flat data """
...@@ -460,7 +460,7 @@ class CsstMsDataManager: ...@@ -460,7 +460,7 @@ class CsstMsDataManager:
else: else:
return self.path_aux.format(detector, "flat") return self.path_aux.format(detector, "flat")
else: else:
return self.custom_flat(detector) return self.custom_flat.format(detector)
def get_axeconf(self): def get_axeconf(self):
if os.uname()[1] == "dandelion": if os.uname()[1] == "dandelion":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment