Skip to content

Conversation

@cfs-data
Copy link
Collaborator

No description provided.

@cfs-data cfs-data marked this pull request as ready for review December 17, 2025 15:58
@cfs-data cfs-data changed the base branch from main to update/resample December 18, 2025 15:19
@github-actions
Copy link

Diff Coverage

Diff: origin/main..HEAD, staged and unstaged changes

  • packages/scratch-core/src/conversion/get_cropped_image.py (94.1%): Missing lines 35
  • packages/scratch-core/src/conversion/mask.py (100%)
  • packages/scratch-core/src/conversion/resample.py (100%)

Summary

  • Total: 41 lines
  • Missing: 1 line
  • Coverage: 97%

packages/scratch-core/src/conversion/get_cropped_image.py

Lines 31-39

  31     :returns: A numpy array with the cropped image data.
  32     """
  33     # Check whether the mask only consists of background
  34     if not np.any(mask):
! 35         return np.full_like(scan_image.data, np.nan)
  36 
  37     # Resample image and mask to speed up the processing
  38     resampled_scan_image, resampled_mask = resample_scan_image_and_mask(
  39         scan_image, mask, factors=resampling_factors

@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Health
. 100% 100%
comparators 100% 100%
conversion 99% 94%
conversion.leveling 100% 100%
conversion.leveling.solver 100% 75%
image_generation 95% 75%
parsers 91% 50%
parsers.patches 91% 62%
preprocessors 100% 100%
processors 100% 100%
utils 80% 100%
Summary 97% (576 / 595) 84% (54 / 64)

Minimum allowed line rate is 50%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants