Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Return nan if no points found in shape features #1018

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

eleftherioszisis
Copy link
Contributor

Given that morphology shape features return single numbers, it's more meaningful to return NaN when no points have been found for the specific type, instead of returning an empty list.

@codecov-commenter
Copy link

Codecov Report

Merging #1018 (4da13e4) into master (ed518c4) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #1018   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           36        36           
  Lines         2401      2401           
=========================================
  Hits          2401      2401           

Copy link
Member

@adrien-berchet adrien-berchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes more sense indeed

@eleftherioszisis eleftherioszisis merged commit 623cbd9 into master Apr 4, 2022
@eleftherioszisis eleftherioszisis deleted the zisis/use-nan-in-shape-features branch April 4, 2022 06:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants