File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ def configure_mantis_logger(
4545 log_dir = Path (save_dir ) / 'logs'
4646 log_dir .mkdir (parents = True , exist_ok = True )
4747
48- # Generate log filename with timestamp
49- timestamp = datetime .now ().strftime ('%Y%m%dT%H%M%S ' )
48+ # Generate log filename with timestamp (including microseconds for uniqueness)
49+ timestamp = datetime .now ().strftime ('%Y%m%dT%H%M%S_%f ' )
5050 log_filename = f'{ acquisition_name } _log_{ timestamp } .txt'
5151 log_path = log_dir / log_filename
5252
@@ -112,8 +112,8 @@ def log_conda_environment(
112112 log_dir = Path (log_dir )
113113 log_dir .mkdir (parents = True , exist_ok = True )
114114
115- # Generate log filename with timestamp
116- timestamp = datetime .now ().strftime ('%Y%m%dT%H%M%S ' )
115+ # Generate log filename with timestamp (including microseconds for uniqueness)
116+ timestamp = datetime .now ().strftime ('%Y%m%dT%H%M%S_%f ' )
117117 log_filename = f'conda_environment_log_{ timestamp } .txt'
118118 log_path = log_dir / log_filename
119119
You can’t perform that action at this time.
0 commit comments