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

Move cmor_check_data to early in preprocessing chain #743

Merged
merged 1 commit into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions esmvalcore/preprocessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

from .._provenance import TrackedFile
from .._task import BaseTask
from ..cmor.check import cmor_check_data, cmor_check_metadata
from ..cmor.fix import fix_data, fix_file, fix_metadata
from ._area import (area_statistics, extract_named_regions, extract_region,
extract_shape, meridional_statistics, zonal_statistics)
from ._cycles import amplitude
Expand All @@ -21,8 +23,6 @@
mask_landsea, mask_landseaice, mask_outside_range)
from ._multimodel import multi_model_statistics
from ._other import clip
from ._reformat import (cmor_check_data, cmor_check_metadata, fix_data,
fix_file, fix_metadata)
from ._regrid import extract_levels, extract_point, regrid
from ._time import (annual_statistics, anomalies, climate_statistics,
daily_statistics, decadal_statistics, extract_month,
Expand Down Expand Up @@ -54,6 +54,7 @@
'extract_month',
# Data reformatting/CMORization
'fix_data',
'cmor_check_data',
# Level extraction
'extract_levels',
# Weighting
Expand Down Expand Up @@ -106,7 +107,6 @@
'anomalies',
'regrid_time',
'timeseries_filter',
'cmor_check_data',
'convert_units',
# Save to file
'save',
Expand All @@ -130,8 +130,8 @@
DEFAULT_ORDER = tuple(__all__)

# The order of initial and final steps cannot be configured
INITIAL_STEPS = DEFAULT_ORDER[:DEFAULT_ORDER.index('fix_data') + 1]
FINAL_STEPS = DEFAULT_ORDER[DEFAULT_ORDER.index('cmor_check_data'):]
INITIAL_STEPS = DEFAULT_ORDER[:DEFAULT_ORDER.index('cmor_check_data') + 1]
FINAL_STEPS = DEFAULT_ORDER[DEFAULT_ORDER.index('save'):]

MULTI_MODEL_FUNCTIONS = {
'multi_model_statistics',
Expand Down
13 changes: 0 additions & 13 deletions esmvalcore/preprocessor/_reformat.py

This file was deleted.