Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/pypa/gh-action-pyp…
Browse files Browse the repository at this point in the history
…i-publish-1.11.0
  • Loading branch information
StRigaud authored Nov 5, 2024
2 parents 1f4dece + ec54fc4 commit aa23129
Show file tree
Hide file tree
Showing 26 changed files with 2,073 additions and 1,392 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default_install_hook_types:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -26,7 +26,7 @@ repos:

# black - code formatting
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion pyclesperanto/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,6 @@ def is_image(object):
"<class 'xarray.core.dataarray.DataArray'>",
"<class 'resource_backed_dask_array.ResourceBackedDaskArray'>",
"<class 'torch.Tensor'>",
"<class 'pyclesperanto_prototype._tier0._pycl.OCLArray'>"
"<class 'pyclesperanto_prototype._tier0._pycl.OCLArray'>",
]
)
177 changes: 88 additions & 89 deletions pyclesperanto/_bia_bob_plugins.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyclesperanto/_functionalities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from inspect import getmembers, isfunction
from os import path
from pathlib import Path
from typing import Optional, Union, Callable
from inspect import getmembers, isfunction
from typing import Callable, Optional, Union

import numpy as np
from matplotlib.colors import ListedColormap
Expand Down
7 changes: 6 additions & 1 deletion pyclesperanto/_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,12 @@ def __repr_html__(self):

num_bins = 32
h = np.asarray(
histogram(self, num_bins=num_bins, minimum_intensity=self.min(), maximum_intensity=self.max())
histogram(
self,
num_bins=num_bins,
minimum_intensity=self.min(),
maximum_intensity=self.max(),
)
)
plt.figure(figsize=(1.8, 1.2))
plt.bar(range(0, len(h)), h)
Expand Down
Loading

0 comments on commit aa23129

Please sign in to comment.