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

Alter spot extract cli #1666

Merged
merged 4 commits into from
Feb 23, 2022
Merged

Conversation

BelligerG
Copy link
Contributor

Altering the spot extract CLI to be more consistent with the rest of improver, closes #1659.

@BelligerG BelligerG added the BoM review required PRs opened by non-BoM developers that require a BoM review label Feb 9, 2022
Copy link
Contributor

@bayliffe bayliffe left a comment

Choose a reason for hiding this comment

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

This is a simple change and looks fine. There needs to be an associated suite change as well that should be merged at the same time.

@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #1666 (1d7a15c) into master (e154e72) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1666   +/-   ##
=======================================
  Coverage   98.18%   98.18%           
=======================================
  Files         110      110           
  Lines       10110    10110           
=======================================
  Hits         9927     9927           
  Misses        183      183           

Continue to review full report at Codecov.

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

Copy link
Contributor

@tjtg tjtg left a comment

Choose a reason for hiding this comment

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

Changes here are all OK from BOM perspective. We'll have to update some internal usage of spot-extract, but changes are expected to be straightforward and quick to make.

elif apply_lapse_rate_correction and not lapse_rate:
if not suppress_warnings:
if apply_lapse_rate_correction:
if len(cubes) == 3:
Copy link
Contributor

Choose a reason for hiding this comment

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

Was a constrained load based on metadata not possible in identifying lapse_rate etc. rather than relying on cube ordering?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly, but it wouldn't fit the pattern for other CLIs. It is something we should look at in the future though

@BelligerG BelligerG merged commit e481abd into metoppv:master Feb 23, 2022
@BelligerG BelligerG deleted the Alter_spot_extract_CLI branch February 23, 2022 07:52
MoseleyS added a commit to MoseleyS/improver that referenced this pull request Mar 2, 2022
* master:
  MOBT127 tiny tweak to filter_realizations (metoppv#1682)
  Mobt 160 ecc masked data (metoppv#1662)
  Convert test_ManipulateReliabilityTable to pytest (metoppv#1678)
  Alter spot extract cli (metoppv#1666)
  Enable site cube input to ConstructReliabilityCalibrationTables (metoppv#1667)
  Corrects example of a CLI in the Read the Doc documentation (metoppv#1673)
  MOBT-211: mosg__model_run attribute handling in weather symbols (metoppv#1670)

# Conflicts:
#	improver_tests/wxcode/wxcode/test_WeatherSymbols.py
fionaRust added a commit that referenced this pull request Mar 9, 2022
* master:
  Remove flawed interpretation of the blend_time coordinate. (#1690)
  DOC: Removal of unnecessary exclusions in sphinx apidoc build (#1689)
  MOBT127 tiny tweak to filter_realizations (#1682)
  Mobt 160 ecc masked data (#1662)
  Convert test_ManipulateReliabilityTable to pytest (#1678)
  Alter spot extract cli (#1666)
  Enable site cube input to ConstructReliabilityCalibrationTables (#1667)
  Corrects example of a CLI in the Read the Doc documentation (#1673)
  MOBT-211: mosg__model_run attribute handling in weather symbols (#1670)
MoseleyS pushed a commit to MoseleyS/improver that referenced this pull request Aug 22, 2024
* Altered interface of spot extract

* updated dosctring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BoM review required PRs opened by non-BoM developers that require a BoM review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the Spot Extract CLI more consistent
5 participants