Skip to content

Commit ba4558f

Browse files
committed
ruff: linting
1 parent 4c57e72 commit ba4558f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

beat/models/geodetic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ def get_all_dataset_ids(self, hp_name):
136136
Return unique GNSS stations and radar acquisitions for a hyperparameter.
137137
"""
138138
hp_dataset_typ = hp_name.split("_")[1]
139-
return [dataset.id for dataset in self.datasets if dataset.typ == hp_dataset_typ]
139+
return [
140+
dataset.id for dataset in self.datasets if dataset.typ == hp_dataset_typ
141+
]
140142

141143
def analyse_noise(self, tpoint=None):
142144
"""

beat/models/seismic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ def get_variance_reductions(
620620
var_reds[target] = float(1 - (nom / denom))
621621

622622
logger.debug(
623-
"Variance reduction for %s is %f"
624-
% (nslcd_id_str, var_reds[target])
623+
"Variance reduction for %s is %f" % (nslcd_id_str, var_reds[target])
625624
)
626625

627626
if 0:
@@ -869,7 +868,7 @@ def get_synthetics(self, point, **kwargs):
869868
obs = []
870869
for i, wmap in enumerate(self.wavemaps):
871870
wc = wmap.config
872-
#print(wc)
871+
# print(wc)
873872
if not wmap.is_prepared or force:
874873
wmap.prepare_data(
875874
source=self.events[wc.event_idx],

beat/sampler/metropolis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def time_per_sample(self, n_points=10):
261261
tps = num.zeros((n_points))
262262
for i in range(n_points):
263263
point = self.population[i]
264-
point = {val_var.name: point[val_var.name] for val_var in self.value_vars}
264+
point = {
265+
val_var.name: point[val_var.name] for val_var in self.value_vars
266+
}
265267
q = self.bij.map(point)
266268

267269
t0 = time()

0 commit comments

Comments
 (0)