Skip to content

Commit

Permalink
Update mala/datahandling/data_scaler.py
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Schmerler <[email protected]>
  • Loading branch information
RandomDefaultUser and elcorto authored Nov 14, 2024
1 parent 5765b48 commit 1ddd3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mala/datahandling/data_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def inverse_transform(self, scaled, copy=False, as_numpy=False):

# Perform the actual scaling, but use no_grad to make sure
# that the next couple of iterations stay untracked.
unscaled = scaled if copy is False else scaled.clone()
unscaled = scaled.clone() if copy else scaled

# First we need to find out if we even have to do anything.
if self.scale_standard is False and self.scale_minmax is False:
Expand Down

0 comments on commit 1ddd3c7

Please sign in to comment.