From 09813154d8b0cd6aa26a5b1e23214ad8407243e4 Mon Sep 17 00:00:00 2001 From: "Dr. Aleksei Krasnov" Date: Mon, 5 Aug 2024 18:39:17 +0200 Subject: [PATCH] Fixed error with np.bool, updated version of decimer_segmentation in __init__.py, added model file to gitignore --- .gitignore | 5 ++++- decimer_segmentation/__init__.py | 2 +- decimer_segmentation/complete_structure.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 596e0a7f..ab8035f8 100755 --- a/.gitignore +++ b/.gitignore @@ -148,4 +148,7 @@ tags .mypy_cache -./Validation/* \ No newline at end of file +./Validation/* + +# Model files +*.h5 \ No newline at end of file diff --git a/decimer_segmentation/__init__.py b/decimer_segmentation/__init__.py index 424a18b8..9e696423 100644 --- a/decimer_segmentation/__init__.py +++ b/decimer_segmentation/__init__.py @@ -10,7 +10,7 @@ please raise an issue on our GitHub repository. """ -__version__ = "1.3.0" +__version__ = "1.4.0" __all__ = [ "decimer_segmentation", diff --git a/decimer_segmentation/complete_structure.py b/decimer_segmentation/complete_structure.py index 63224616..48989583 100644 --- a/decimer_segmentation/complete_structure.py +++ b/decimer_segmentation/complete_structure.py @@ -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