diff --git a/lib/ioconverter.py b/lib/ioconverter.py index 0c8b0b6..9f63899 100644 --- a/lib/ioconverter.py +++ b/lib/ioconverter.py @@ -374,7 +374,7 @@ class ExcelConverter: """ Aufbereiter der Daten je nach gewünschtem Export-Typ """ - if export_type == "Simpel": + if export_type == "EA": return self._prep_simpel(data) elif export_type == "TIA": return self._prep_tia(data) @@ -397,7 +397,7 @@ class ExcelConverter: """ Erzeugung der Excel-Datei im gewünschten Muster """ - if export_type == "Simpel": + if export_type == "EA": # Format für Simpel-Ausgabe df_gleiche_eingaenge, df_gleiche_ausgaenge, df_fehler, df_eingaenge, df_ausgaenge = dataframes @@ -677,7 +677,7 @@ if __name__ == "__main__": runner = unittest.TextTestRunner() runner.run(suite) - export_type_arr = ("Simpel", "TIA", "WSCAD", "WSCAD mit Bezug") + export_type_arr = ("EA", "TIA", "WSCAD", "WSCAD mit Bezug") textlines = """'XYZ0023','STEUERSPANNUNG 24V UC200 OK','24V OK','=A01+UH000-KF02i','STEUERSPANNUNG 24V UC200 OK','CONTROL VOLTAGE 24V UC200 OK','TENSION DE MANIOBRA 24V UC200 OK','','' 'DI0020','STEUERSPANNUNG 24V UH000 OK','24V OK UH000','=A01+UH000-KF02i','STEUERSPANNUNG 24V UH000 OK','CONTROL VOLTAGE 24V UH000 OK','TENSION DE MANIOBRA 24V UH000 OK','','' 'DI0020','STEUERSPANNUNG 24V UC103 ','24V OK','=A01+UH000-KF02i','STEUERSPANNUNG 24V UC103 OK','CONTROL VOLTAGE 24V UC103 OK','TENSION DE MANIOBRA 24V UC103 OK','',''