Skip to content

Commit

Permalink
Merge pull request #111 from Kohulan/development
Browse files Browse the repository at this point in the history
fix: Fixed error with np.bool
  • Loading branch information
Kohulan authored Aug 6, 2024
2 parents 97d825a + 3c91797 commit ec3052f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,7 @@ tags

.mypy_cache

./Validation/*
./Validation/*

# Model files
*.h5
2 changes: 1 addition & 1 deletion decimer_segmentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
please raise an issue on our GitHub repository.
"""

__version__ = "1.3.0"
__version__ = "1.4.0"

__all__ = [
"decimer_segmentation",
Expand Down
2 changes: 1 addition & 1 deletion decimer_segmentation/complete_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def complete_structure_mask(
hough_lines = detect_lines(
binarized_image_array,
max_depiction_size,
segmentation_mask=np.any(mask_array, axis=2).astype(np.bool)
segmentation_mask=np.any(mask_array, axis=2).astype(np.bool_)
)
hough_lines = binary_dilation(hough_lines, footprint=kernel)
exclusion_mask = horizontal_vertical_lines + hough_lines
Expand Down

0 comments on commit ec3052f

Please sign in to comment.