コード例 #1
0
 def __init__(self, location_id, base_directory, please_fail=False):
     super().__init__()
     self.location_id = location_id
     out_file = base_directory / f"data/{location_id}.hdf"
     self.outputs["out"] = FileEntity(out_file)
     self.please_fail = please_fail
コード例 #2
0
 def outputs(self):
     out_file = self.base_directory / f"location{self.task_id}.hdf"
     self._outputs["out"] = FileEntity(out_file)
     return self._outputs
コード例 #3
0
ファイル: task_app.py プロジェクト: ihmeuw/gridengineapp
 def __init__(self, base_directory):
     super().__init__()
     out_file = base_directory / f"one.hdf"
     self.outputs["out"] = FileEntity(out_file)
コード例 #4
0
 def __init__(self, base_directory):
     super().__init__()
     self.base_directory = base_directory
     self.cause = "aggregate"
     self.out_file = Path(base_directory / f"all.csv")
     self.outputs["out"] = FileEntity(self.out_file)
コード例 #5
0
 def __init__(self, cause, base_directory):
     super().__init__()
     self.cause = cause
     self.out_file = base_directory / f"{cause}.csv"
     self.outputs["out"] = FileEntity(self.out_file)
コード例 #6
0
 def __init__(self, location, sex, base_directory):
     super().__init__()
     self.location_id = location
     self.sex = sex
     out_file = base_directory / f"{location}_{sex}.hdf"
     self.outputs["out"] = FileEntity(out_file)