Skip to content

Commit

Permalink
precommit formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zerafachris committed May 28, 2024
1 parent 2028f0b commit 42a916d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scatcluster/processing/scattering.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,17 +570,16 @@ def process_vectorized_scattering_coefficients(self) -> None:
f'{self.network_name}_scat_coef_xarray.nc')

return coefficients

def vectorize_scattering_coefficients_xarray(self, coefficients):
n_samples = coefficients.time.shape[0]
x1 = coefficients.order_1.data.reshape(n_samples, -1)
x2 = coefficients.order_2.data.reshape(n_samples, -1)
x = np.hstack((x1, x2))

x[np.isnan(x)] = 0
x[np.isnan(x)] = 0

return x


def load_scattering_coefficients_xarray(self):
"""
Expand Down

0 comments on commit 42a916d

Please sign in to comment.