Skip to content
Snippets Groups Projects
Commit ad5495dc authored by Joseph Rudzinski's avatar Joseph Rudzinski
Browse files

fixed linting errors

parent 720d64d9
No related branches found
No related tags found
1 merge request!1437fixed storage of times in archive_to_universe, and recoded Rg value calc and...
Pipeline #175412 failed
......@@ -1281,7 +1281,7 @@ def archive_to_universe(archive, system_index: int = 0, method_index: int = -1,
logging.warning('Cannot find the system times. MDA universe will contain non-physical times and timestep.')
else:
time_steps = [system_times[i_time] - system_times[i_time - 1] for i_time in range(1, len(system_times))]
if all([approx(time_steps[0], time_step) for time_step in time_steps]):
if all(approx(time_steps[0], time_step) for time_step in time_steps):
system_timestep = ureg.convert(time_steps[0].magnitude, ureg.second, ureg.picosecond)
else:
logging.warning(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment