-
Notifications
You must be signed in to change notification settings - Fork 215
link instead of copy in staging jobs
#3410
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dd3dbd5
update hash of wxflow
aerorahul 4296d03
update copy to link in the stage_ic parms
aerorahul 647b66e
update the master yamls doc-block to include link as an option in add…
aerorahul f536a3f
update comments and doc-blocks
aerorahul b3beae1
update comments and doc-blocks
aerorahul 86d5fb1
Merge branch 'develop' into feature/stage
aerorahul 98f2535
Merge branch 'develop' into feature/stage
aerorahul c81631a
update w/ fix from @CatherineThomas-NOAA
aerorahul 52860ec
update wxflow hash to handle existing files for links
aerorahul ed3248c
Merge branch 'develop' into feature/stage
aerorahul 809a3e5
Merge branch 'develop' into feature/stage
KateFriedman-NOAA 64dc898
Merge branch 'develop' into feature/stage
aerorahul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,184 +0,0 @@ | ||
| ################################################################### | ||
| # This is the master yaml for the GFS | ||
| # | ||
| # Cycle, member, and RUN settings are set before including each | ||
| # component yaml based on DO switches | ||
| # | ||
| # The included yamls are intended to be of the following structure: | ||
| # key1: | ||
| # mkdir: | ||
| # - "COM directory to create" | ||
| # copy: | ||
| # - ["source_file", "destination_file"] | ||
| # key2: | ||
| # mkdir: | ||
| # - "COM directory to create" | ||
| # copy: | ||
| # - ["source_file", "destination_file"] | ||
| # | ||
| # Any number of keys with nested mkdir and copy are permitted | ||
| # Jinja is permitted in this yaml, as long as the keys are: | ||
| # - COMOUT_ | ||
| # - DO_ATM, DO_OCN, DO_ICE, etc. | ||
| # For a full list see scripts/exglobal_stage_ic.py | ||
| ################################################################### | ||
|
|
||
| # Set cycle date variables | ||
| # ------------------------ | ||
| {% set half_window = assim_freq // 2 %} | ||
| {% set half_window_begin = (-half_window | string + "H") | to_timedelta %} | ||
| {% set half_window_end = (half_window | string + "H") | to_timedelta %} | ||
| {% if DOIAU and MODE == "cycled" %} | ||
| {% set model_start_date_current_cycle = current_cycle | add_to_datetime(half_window_begin) %} | ||
| {% else %} | ||
| {% if REPLAY_ICS %} | ||
| {% set model_start_date_current_cycle = current_cycle | add_to_datetime(half_window_end) %} | ||
| {% else %} | ||
| {% set model_start_date_current_cycle = current_cycle %} | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% set current_cycle_YMD = current_cycle | to_YMD %} | ||
| {% set current_cycle_HH = current_cycle | strftime("%H") %} | ||
| {% set previous_cycle_YMD = previous_cycle | to_YMD %} | ||
| {% set previous_cycle_HH = previous_cycle | strftime("%H") %} | ||
| {% set p_prefix = previous_cycle | strftime("%Y%m%d.%H0000") %} | ||
| {% set m_prefix = model_start_date_current_cycle | strftime("%Y%m%d.%H0000") %} | ||
|
|
||
| # Determine restart RUN | ||
| # --------------------- | ||
| {% set rRUN = RUN %} | ||
| {% if RUN == "gfs" %} | ||
| {% set rRUN = "gdas" %} | ||
| {% endif %} | ||
|
|
||
| # Set first/last mem for loop | ||
| # --------------------------- | ||
| {% if RUN == "enkfgdas" %} # Ensemble RUN | ||
| {% set first_mem = 1 %} | ||
| {% set last_mem = NMEM_ENS %} | ||
| {% else %} # Deterministic RUN | ||
| {% set first_mem = -1 %} | ||
| {% set last_mem = -1 %} | ||
| {% endif %} | ||
|
|
||
| # Declare to-be-filled lists of member COM directories | ||
| # ---------------------------------------------------- | ||
| {% set COMOUT_ATMOS_INPUT_MEM_list = [] %} | ||
| {% set COMOUT_ATMOS_RESTART_PREV_MEM_list = [] %} | ||
| {% set COMOUT_ATMOS_ANALYSIS_MEM_list = [] %} | ||
| {% set COMOUT_ICE_ANALYSIS_MEM_list = [] %} | ||
| {% set COMOUT_ICE_RESTART_PREV_MEM_list = [] %} | ||
| {% set COMOUT_OCEAN_RESTART_PREV_MEM_list = [] %} | ||
| {% set COMOUT_OCEAN_ANALYSIS_MEM_list = [] %} | ||
| {% set COMOUT_MED_RESTART_PREV_MEM_list = [] %} | ||
| {% set COMOUT_WAVE_RESTART_PREV_MEM_list = [] %} | ||
|
|
||
| # Construct member COM directory lists | ||
| # ------------------------------------ | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
|
|
||
| {% if mem >= 0 %} | ||
| {% set mem_char = 'mem%03d' | format(mem) %} | ||
| {% else %} | ||
| {% set mem_char = '' %} | ||
| {% endif %} | ||
|
|
||
| {% set current_cycle_dict = ({ '${ROTDIR}':ROTDIR, | ||
| '${RUN}':RUN, | ||
| '${YMD}':current_cycle_YMD, | ||
| '${HH}':current_cycle_HH, | ||
| '${MEMDIR}': mem_char }) %} | ||
| {% set previous_cycle_dict = ({ '${ROTDIR}':ROTDIR, | ||
| '${RUN}':rRUN, | ||
| '${YMD}':previous_cycle_YMD, | ||
| '${HH}':previous_cycle_HH, | ||
| '${MEMDIR}': mem_char }) %} | ||
|
|
||
| {% set COMOUT_ATMOS_INPUT_MEM = COM_ATMOS_INPUT_TMPL | replace_tmpl(current_cycle_dict) %} | ||
| {% set COMOUT_ATMOS_RESTART_PREV_MEM = COM_ATMOS_RESTART_TMPL | replace_tmpl(previous_cycle_dict) %} | ||
| {% set COMOUT_ATMOS_ANALYSIS_MEM = COM_ATMOS_ANALYSIS_TMPL | replace_tmpl(current_cycle_dict) %} | ||
| {% set COMOUT_ICE_ANALYSIS_MEM = COM_ICE_ANALYSIS_TMPL | replace_tmpl(current_cycle_dict) %} | ||
| {% set COMOUT_ICE_RESTART_PREV_MEM = COM_ICE_RESTART_TMPL | replace_tmpl(previous_cycle_dict) %} | ||
| {% set COMOUT_OCEAN_RESTART_PREV_MEM = COM_OCEAN_RESTART_TMPL | replace_tmpl(previous_cycle_dict) %} | ||
| {% set COMOUT_OCEAN_ANALYSIS_MEM = COM_OCEAN_ANALYSIS_TMPL | replace_tmpl(current_cycle_dict) %} | ||
| {% set COMOUT_MED_RESTART_PREV_MEM = COM_MED_RESTART_TMPL | replace_tmpl(previous_cycle_dict) %} | ||
| {% set COMOUT_WAVE_RESTART_PREV_MEM = COM_WAVE_RESTART_TMPL | replace_tmpl(previous_cycle_dict) %} | ||
|
|
||
| # Append the member COM directories | ||
| {% do COMOUT_ATMOS_INPUT_MEM_list.append(COMOUT_ATMOS_INPUT_MEM)%} | ||
| {% do COMOUT_ATMOS_RESTART_PREV_MEM_list.append(COMOUT_ATMOS_RESTART_PREV_MEM)%} | ||
| {% do COMOUT_ATMOS_ANALYSIS_MEM_list.append(COMOUT_ATMOS_ANALYSIS_MEM)%} | ||
| {% do COMOUT_ICE_ANALYSIS_MEM_list.append(COMOUT_ICE_ANALYSIS_MEM)%} | ||
| {% do COMOUT_ICE_RESTART_PREV_MEM_list.append(COMOUT_ICE_RESTART_PREV_MEM)%} | ||
| {% do COMOUT_OCEAN_RESTART_PREV_MEM_list.append(COMOUT_OCEAN_RESTART_PREV_MEM)%} | ||
| {% do COMOUT_OCEAN_ANALYSIS_MEM_list.append(COMOUT_OCEAN_ANALYSIS_MEM)%} | ||
| {% do COMOUT_MED_RESTART_PREV_MEM_list.append(COMOUT_MED_RESTART_PREV_MEM)%} | ||
| {% do COMOUT_WAVE_RESTART_PREV_MEM_list.append(COMOUT_WAVE_RESTART_PREV_MEM)%} | ||
|
|
||
| {% endfor %} | ||
|
|
||
| ################################################################### | ||
| # Initial condition to stage - include components based on switches | ||
| ################################################################### | ||
|
|
||
| {% if MODE == "cycled" %} | ||
| {% filter indent(width=4) %} | ||
| {% include "analysis.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
|
|
||
| {% if EXP_WARM_START %} | ||
| {% filter indent(width=4) %} | ||
| {% include "atmosphere_warm.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% else %} # cold start | ||
| {% filter indent(width=4) %} | ||
| {% include "atmosphere_cold.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
|
|
||
| {% if DO_NEST %} | ||
| {% filter indent(width=4) %} | ||
| {% include "atmosphere_nest.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
|
|
||
| {% if REPLAY_ICS %} | ||
| {% filter indent(width=4) %} | ||
| {% include "atmosphere_perturbation.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
|
|
||
| {% if DO_ICE %} | ||
| {% filter indent(width=4) %} | ||
| {% include "ice.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
|
|
||
| {% if DO_OCN %} | ||
| {% filter indent(width=4) %} | ||
| {% include "ocean.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% if DO_JEDIOCNVAR %} | ||
| {% filter indent(width=4) %} | ||
| {% include "ocean_rerun.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
| {% if REPLAY_ICS %} | ||
| {% filter indent(width=4) %} | ||
| {% include "ocean_replay.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
| {% if EXP_WARM_START %} | ||
| {% filter indent(width=4) %} | ||
| {% include "ocean_mediator.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
| {% endif %} | ||
|
|
||
| {% if DO_WAVE %} | ||
| {% filter indent(width=4) %} | ||
| {% include "wave.yaml.j2" %} | ||
| {% endfilter %} | ||
| {% endif %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule wxflow
updated
8 files
| +1 −1 | .github/workflows/pytests.yaml | |
| +1 −1 | src/wxflow/configuration.py | |
| +29 −2 | src/wxflow/file_utils.py | |
| +4 −3 | src/wxflow/fsutils.py | |
| +2 −1 | src/wxflow/schema.py | |
| +7 −6 | src/wxflow/sqlitedb.py | |
| +169 −8 | tests/test_file_utils.py | |
| +1 −1 | tests/test_sqlitedb.py |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.