Skip to content

Commit

Permalink
Fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Apr 10, 2024
1 parent 72f23e7 commit d7b2f64
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions janus_core/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ class MolecularDynamics: # pylint: disable=too-many-instance-attributes
temp_end : Optional[float]
Maximum temperature for heating, in K. Default is None, which disables heating.
temp_step : Optional[float]
Size of temperature steps when heating, in K. Default is None, which disables heating.
Size of temperature steps when heating, in K. Default is None, which disables
heating.
temp_time : Optional[float]
Time between heating steps, in fs. Default is None, which disables heating.
log_kwargs : Optional[dict[str, Any]]
Expand Down Expand Up @@ -235,7 +236,8 @@ def __init__( # pylint: disable=too-many-arguments,too-many-locals,too-many-sta
Maximum temperature for heating, in K. Default is None, which disables
heating.
temp_step : Optional[float]
Size of temperature steps when heating, in K. Default is None, which disables heating.
Size of temperature steps when heating, in K. Default is None, which
disables heating.
temp_time : Optional[float]
Time between heating steps, in fs. Default is None, which disables heating.
log_kwargs : Optional[dict[str, Any]]
Expand Down Expand Up @@ -300,7 +302,9 @@ def __init__( # pylint: disable=too-many-arguments,too-many-locals,too-many-sta
raise ValueError("Start and end temperatures must be different")

# Warn if mix of None and not None
if (self.temp_start or self.temp_end or self.temp_step or self.temp_time) and not (
if (
self.temp_start or self.temp_end or self.temp_step or self.temp_time
) and not (
self.temp_start and self.temp_end and self.temp_step and self.temp_time
):
warn(
Expand Down

0 comments on commit d7b2f64

Please sign in to comment.