danforthcenter / plantcv

Plant phenotyping with image analysis
Mozilla Public License 2.0
665 stars 265 forks source link

Update warn to utilize the verbose global parameter #1600

Closed nfahlgren closed 1 month ago

nfahlgren commented 2 months ago

Describe your changes The existing warn function prints a warning message to STDERR. This PR updates the function to print when pcv.params.verbose is True but not False. This allows the user to suppress warning messages when needed. Also adds an explicit test for the warn function.

Type of update Is this a: New feature or feature enhancement

For the reviewer See this page for instructions on how to review the pull request.

deepsource-io[bot] commented 2 months ago

Here's the code health analysis summary for commits 1429294..6692372. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage100%100%
Line Coverage100%100%
New Branch Coverage100%100%
New Composite Coverage100%100%
New Line Coverage100%, ✅ Above Threshold100%, ✅ Above Threshold

💡 If you’re a repository administrator, you can configure the quality gates from the settings.