Skip to content

Commit

Permalink
ci: dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jul 22, 2023
1 parent 0429ed2 commit f981c00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.278'
rev: 'v0.0.280'
hooks:
- id: ruff
args: [--fix]
Expand Down
2 changes: 1 addition & 1 deletion popmon/hist/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def sum_over_x(hist):
# n_dim >= 2 and we have contents; here we sum over it.
h_proj = None
if hasattr(hist, "bins"):
h_proj = list(hist.bins.values())[0].zero()
h_proj = next(iter(hist.bins.values())).zero()
# loop over all counters and integrate over x (=i)
for bi in hist.bins.values():
h_proj += bi
Expand Down
2 changes: 1 addition & 1 deletion popmon/stitching/hist_stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _insert_hists(self, hbasis, hdelta_list, time_bin_idx, mode):
"basis histogram does not have bins attribute. cannot insert."
)
if len(hbasis.bins) > 0:
hbk0 = list(hbasis.bins.values())[0]
hbk0 = next(iter(hbasis.bins.values()))
assert_similar_hists([hbk0, *hdelta_list])
else:
assert_similar_hists(hdelta_list)
Expand Down
2 changes: 1 addition & 1 deletion tools/pipeline_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def process(data, G):


if __name__ == "__main__":
data_path = Path(".")
data_path = Path()

# Example pipeline
from popmon import resources
Expand Down

0 comments on commit f981c00

Please sign in to comment.