Skip to content

Commit ddbac34

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 ae25094 commit ddbac34

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
@@ -406,7 +406,7 @@ def __init__(self, physics : Physics, config : dict) -> None:
406406
value = value);
407407

408408
self.decoder = MultiLayerPerceptron(
409-
latent_sizes = layer_sizes[::-1], # Reverses the order of the the list.
409+
layer_sizes = layer_sizes[::-1], # Reverses the order of the the list.
410410
act_type = act_type,
411411
reshape_index = -1,
412412
reshape_shape = self.qgrid_size, # We need to reshape the network output to a fom frame.

0 commit comments

Comments
 (0)