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
upgrade_dir_name=upgrade_dir_name[:20] # Truncate name to avoid long filepath errors on Windows
it might end with space if the last char in upgrade_dir_name is space. The space tail will be automatically dumped in the generated directory but will stay in the path name and this conflict will cause "FileNotFoundError: [Errno 2] No such file or directory:".
Suggestion
Logic needs to be added to handle this scenario, so that the last space in truncated upgrade_dir_name would be removed to match the generated directory.
The text was updated successfully, but these errors were encountered:
Bug found in
comstock_measure_comparison.py
undercomstockpostproc
Description
When the upgrade dir name exceeeds 20 char and triggers the truncating operation in:
ComStock/postprocessing/comstockpostproc/comstock_measure_comparison.py
Line 41 in eea3ae0
it might end with space if the last char in
upgrade_dir_name
is space. The space tail will be automatically dumped in the generated directory but will stay in the path name and this conflict will cause "FileNotFoundError: [Errno 2] No such file or directory:".Suggestion
Logic needs to be added to handle this scenario, so that the last space in truncated
upgrade_dir_name
would be removed to match the generated directory.The text was updated successfully, but these errors were encountered: