Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handling edge cases in preprocessing.FaceArtifacts #666

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

@jGaboardi jGaboardi self-assigned this Nov 11, 2024
@jGaboardi jGaboardi changed the title handling edge cases in preprocessing. FaceArtifacts handling edge cases in preprocessing.FaceArtifacts Nov 11, 2024
"Identification of face artifacts not possible.",
UserWarning,
stacklevel=2,
)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
)
)
self.threshold = None
self.face_artifacts = None

I am not sure if we should not do this and maybe some other.

Copy link
Member Author

@jGaboardi jGaboardi Nov 11, 2024

Choose a reason for hiding this comment

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

So should we go ahead and assign all possible attributes as None?

  • kde
  • pdf
  • peaks
  • d_peaks
  • valleys
  • d_valleys
  • threshold
  • face_artifacts

Copy link
Member Author

Choose a reason for hiding this comment

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

I went ahead and pushed up all attr = None

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.1%. Comparing base (4037c70) to head (a47fd6f).
Report is 92 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #666     +/-   ##
=======================================
+ Coverage   97.4%   98.1%   +0.8%     
=======================================
  Files         26      40     +14     
  Lines       4328    7180   +2852     
=======================================
+ Hits        4214    7046   +2832     
- Misses       114     134     +20     
Files with missing lines Coverage Δ
momepy/preprocessing.py 93.9% <100.0%> (+0.6%) ⬆️
momepy/tests/test_preprocess.py 100.0% <100.0%> (ø)

@martinfleis martinfleis merged commit 2d9bc9f into pysal:main Nov 11, 2024
14 of 15 checks passed
@jGaboardi jGaboardi deleted the GH664_GH665_edge_cases_FA branch November 11, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants