You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
quoting=csv.QUOTE_NONE,# don't encapsulate data in quotes
56
+
sep="\t")# tab as data separator because it can't be used in filenames
57
57
exceptFileNotFoundError:
58
-
success=False
59
58
return
60
-
logging.info(config_df)
61
-
ifconfig_df["input datetime format"].isnull().values.any(): # is any input datetime format NaN? # type:ignore
62
-
logging.error(f"An input datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(CONFIG_HEADER)-1} tabs to make {len(CONFIG_HEADER)} columns.")
63
-
raiseValueError(f"Error in {main.__name__}{inspect.signature(main)}: An input datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(CONFIG_HEADER)-1} tabs to make {len(CONFIG_HEADER)} columns.")
64
-
ifconfig_df["output datetime format"].isnull().values.any(): # is any output datetime format NaN? # type:ignore
65
-
logging.error(f"An output datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(CONFIG_HEADER)-1} tabs to make {len(CONFIG_HEADER)} columns.")
66
-
raiseValueError(f"Error in {main.__name__}{inspect.signature(main)}: An output datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(CONFIG_HEADER)-1} tabs to make {len(CONFIG_HEADER)} columns.")
59
+
logging.info(format_conversion_df)
60
+
ifformat_conversion_df["input datetime format"].isnull().values.any(): # is any input datetime format NaN? # type:ignore
61
+
logging.error(f"An input datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(FORMAT_CONVERSION_HEADER)-1} tabs to make {len(FORMAT_CONVERSION_HEADER)} columns.")
62
+
raiseValueError(f"Error in {main.__name__}{inspect.signature(main)}: An input datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(FORMAT_CONVERSION_HEADER)-1} tabs to make {len(FORMAT_CONVERSION_HEADER)} columns.")
63
+
ifformat_conversion_df["output datetime format"].isnull().values.any(): # is any output datetime format NaN? # type:ignore
64
+
logging.error(f"An output datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(FORMAT_CONVERSION_HEADER)-1} tabs to make {len(FORMAT_CONVERSION_HEADER)} columns.")
65
+
raiseValueError(f"Error in {main.__name__}{inspect.signature(main)}: An output datetime format is NaN. This is most likely because one of your rows does not contain exactly {len(FORMAT_CONVERSION_HEADER)-1} tabs to make {len(FORMAT_CONVERSION_HEADER)} columns.")
logging.error(f"Renaming \"{filename_old}\" to \"{filename_new}\" failed, because file already exists.")
111
110
success=False
112
-
exceptPermissionError: # if file still in use:
111
+
exceptPermissionError: # if file still in use:
113
112
logging.error(f"Renaming \"{filename_old}\" to \"{filename_new}\" failed with \"PermissionError\". File might still be in use.")
114
113
success=False
115
-
exceptOSError: # wenn Umbenennung verbotene Zeichen enthält: aufhören
114
+
exceptOSError: # wenn Umbenennung verbotene Zeichen enthält: aufhören
116
115
logging.error(f"Renaming \"{filename_old}\" to \"{filename_new}\" failed with \"OSError\". Output format might contain characters forbidden for filenames. (\\/:*?\"<>|)")
117
116
success=False
118
117
else:
119
118
logging.info(f"\rRenamed \"{filename_old}\" to \"{filename_new}\".")
0 commit comments