Skip to content

Add fill flag#893

Draft
Ciheim wants to merge 1 commit into
NOAA-GFDL:mainfrom
Ciheim:892.catalogfill
Draft

Add fill flag#893
Ciheim wants to merge 1 commit into
NOAA-GFDL:mainfrom
Ciheim:892.catalogfill

Conversation

@Ciheim
Copy link
Copy Markdown
Contributor

@Ciheim Ciheim commented May 14, 2026

Describe your changes

Issue ticket number and link (if applicable)

Fixes #XXX (replace XXX with the issue number and GitHub will autolink the PR to the issue)

Checklist before requesting a review

  • I ran my code
  • I tried to make my code readable
  • I tried to comment my code
  • I wrote a new test, if applicable
  • I wrote new instructions/documentation, if applicable
  • I ran pytest and inspected it's output
  • I ran pylint and attempted to implement some of it's feedback
  • No print statements; all user-facing info uses logging module

Note: If you are a code maintainer updating the tag or releasing a new fre-cli version, please use the release_procedure.md template. To quickly use this template, open a new pull request, choose your branch, and add ?template=release_procedure.md to the end of the url.

@Ciheim
Copy link
Copy Markdown
Contributor Author

Ciheim commented May 14, 2026

Addresses #892

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.37%. Comparing base (b73b470) to head (773e580).
⚠️ Report is 149 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #893      +/-   ##
==========================================
+ Coverage   84.15%   84.37%   +0.21%     
==========================================
  Files          71       71              
  Lines        4955     5004      +49     
==========================================
+ Hits         4170     4222      +52     
+ Misses        785      782       -3     
Flag Coverage Δ
unittests 84.37% <100.00%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
fre/catalog/frecatalog.py 94.59% <100.00%> (+0.15%) ⬆️

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b73b470...773e580. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread fre/catalog/frecatalog.py
#, help = 'Specify output filename suffix only. e.g. catalog')
@click.option('--config', required = False, type = click.Path(exists = True), nargs = 1,
help = 'Path to your yaml config, Use the config_template in intakebuilder repo')
@click.option('--fill', '-f', default=True, type=bool, help="Fill all empty CSV column values with 'NA'. Defaults to True. Use --fill=False to disable.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To negate the fill option, it's more standard to make it a flag and let it be negated with --no-fill than require an value for the fill option --fill=False.

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.

2 participants