Skip to content

Commit

Permalink
reformat some files with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
msarkis-icr committed Nov 27, 2024
1 parent 0448594 commit 18ac0d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/SOPRANO/core/kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,9 @@ def update_statistics(
on_off_key: str, type_key: str, hist_data: _HistogramData
):
if hist_data.is_available:
statistics[on_off_key][
type_key
] = hist_data.estimates.dict_summary()
statistics[on_off_key][type_key] = (
hist_data.estimates.dict_summary()
)

# Update on exonic components
update_statistics(_on_key, _exonic_key, self.on_exonic)
Expand Down
5 changes: 3 additions & 2 deletions src/SOPRANO/core/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ def check_params(self):
@as_single_process()
def gather(self):
sample_results_paths = [
self.get_sample(idx).results_path for idx in range(-1, self.n_samples)
self.get_sample(idx).results_path
for idx in range(-1, self.n_samples)
]

for expected_results_path in sample_results_paths:
Expand Down Expand Up @@ -431,7 +432,7 @@ def gather(self):
joined_df.to_csv(self.samples_path)
if self.n_samples >= 1:
self.plot_hist()

@staticmethod
def split_joined_df(
joined_df: pd.DataFrame,
Expand Down

0 comments on commit 18ac0d5

Please sign in to comment.