def compute(self): self.checkInputPort('csvFile') csv_file = self.getInputFromPort('csvFile') if not LoadAppLogic.IsExistsCSVFile(csv_file.file_entry): raise ModuleError(self, "IsExistsCSVFile failed") self.annotate({'used_files': str([csv_file.file_entry.HeaderPath])}) csv_file.file_entry = \ LoadAppLogic.ReadCSVFileColumnNames(csv_file.file_entry) if not LoadAppLogic.IsMatchCSVFileColumnNames(csv_file.file_entry): raise ModuleError(self, "IsMatchCSVFileColumnNames failed") self.setResult('csvFile', csv_file)
def compute(self): self.check_input('csvFile') csv_file = self.get_input('csvFile') res = LoadAppLogic.IsExistsCSVFile(csv_file.file_entry) self.set_output('fileExists', res)
def compute(self): self.checkInputPort('csvFile') csv_file = self.getInputFromPort('csvFile') res = LoadAppLogic.IsExistsCSVFile(csv_file.file_entry) self.setResult('fileExists', res)