Skip to content

Commit 782f57a

Browse files
author
Robert Stephany
committed
Fixed bugs
gplasdi had an instance of np.Inf (which is depricated). I also fixed a typo in latent_spaces.py
1 parent 4fa50fe commit 782f57a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lasdi/gplasdi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __init__(self, physics, autoencoder, latent_dynamics, param_space, config):
138138
else:
139139
self.device = 'cpu'
140140

141-
self.best_loss = np.Inf
141+
self.best_loss = np.inf
142142
self.best_coefs = None
143143
self.restart_iter = 0
144144

src/lasdi/latent_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __init__(self, physics : Physics, config : dict) -> None:
387387
value = value);
388388

389389
self.decoder = MultiLayerPerceptron(
390-
latent_sizes = layer_sizes[::-1], # Reverses the order of the the list.
390+
layer_sizes = layer_sizes[::-1], # Reverses the order of the the list.
391391
act_type = act_type,
392392
reshape_index = -1,
393393
reshape_shape = self.qgrid_size, # We need to reshape the network output to a fom frame.

0 commit comments

Comments
 (0)