-
Notifications
You must be signed in to change notification settings - Fork 203
Refactor Stage IC: Move COM and Cycle Variables and Logic from YAML Master Templates to Python Scripts #3984
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
Draft
AntonMFernando-NOAA
wants to merge
124
commits into
NOAA-EMC:develop
Choose a base branch
from
AntonMFernando-NOAA:enabler/stage_archive
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
1b28f9d
added ush\python\pygfs\task\strageic_archive.py
AntonMFernando-NOAA 2700dec
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA ff3513f
update parm\stage\master_gefs.yaml.j2
AntonMFernando-NOAA bf04a09
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA f70f475
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 32c7e80
added calculate_member_variables method
AntonMFernando-NOAA 5789e25
added stage_ic methods
AntonMFernando-NOAA d53f113
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 633fe15
added dictionary of stage_ic vars to stage_ic.py
AntonMFernando-NOAA cb69289
removed vars rrom stage master yamls
AntonMFernando-NOAA 3e55fe3
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA d8cbf2a
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 6550dad
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA a0d2388
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 1c37413
modified ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 774c028
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 2f89a31
modify ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA d2da74a
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 2f28452
modified scripts\exglobal_stage_ic.py
AntonMFernando-NOAA b7f6ef4
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA c56e02a
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 4544535
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 5c46971
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 35f5197
modified stage.py
AntonMFernando-NOAA a8cee19
updated scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 6f59580
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA db790ec
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA e3774bc
typos
AntonMFernando-NOAA 2b41f33
Merge branch 'enabler/stage_archive' of https://github.com/AntonMFern…
AntonMFernando-NOAA 2992d88
modified ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 0f06882
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA e7d0c2f
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 5c9549d
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 3afc751
Merge branch 'enabler/stage_archive' of https://github.com/AntonMFern…
AntonMFernando-NOAA d04df10
update per member
AntonMFernando-NOAA 8831964
update stage_ic.py
AntonMFernando-NOAA f3aed37
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 15a3b8e
updated scripts\exglobal_stage_ic.py
AntonMFernando-NOAA a14ca40
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 9f3bb92
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA a50ba21
edited sub-master.yamls
AntonMFernando-NOAA f598efb
modified dev\workflow\rocoto\gefs_tasks.py
AntonMFernando-NOAA e983518
update parm\stage\master_gefs_RT.yaml.j2
AntonMFernando-NOAA d8ad5fd
Merge branch 'enabler/stage_archive' into develop
AntonMFernando-NOAA bfb9dd5
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA bf56be6
update RT files
AntonMFernando-NOAA bae9e08
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 34d2a4f
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 3546d83
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 85ea18c
Merge branch 'enabler/stage_archive' of https://github.com/AntonMFern…
AntonMFernando-NOAA d976c32
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 6ba95d1
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA e890c5b
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 9c8c809
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 8c66dcc
upadte exscript
AntonMFernando-NOAA 3c86d6b
update scripts\exglobal_stage_ic.py
AntonMFernando-NOAA 6ea48e2
enable gefs_RT test (revert once done)
AntonMFernando-NOAA b68cf3f
near-real-time change
AntonMFernando-NOAA f8b94c0
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA cb139a0
removed copy and added link
AntonMFernando-NOAA 7ffee7b
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 2c62ee8
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA e456dae
update yamls for gcafs
AntonMFernando-NOAA e06a506
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 76f215c
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 036db0a
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 4a566bc
update enkfgdas vars
AntonMFernando-NOAA 904f3b4
modify parm\stage\master_gcafs.yaml.j2
AntonMFernando-NOAA 12f6726
update parm\stage\master_gcafs.yaml.j2
AntonMFernando-NOAA f00ac42
update vars
AntonMFernando-NOAA 6e6a4e4
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 23405cf
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 420f632
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 2455823
added comments
AntonMFernando-NOAA c54ad57
update parm\stage\analysis.yaml.j2
AntonMFernando-NOAA 034de48
modify ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 463b8f2
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 2fa02e1
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 6963797
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA c6b6f29
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA a8686ac
modifed parm\stage\ice.yaml.j2
AntonMFernando-NOAA d57c3d1
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA f226db8
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA ef24b61
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA a3a74db
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 7882319
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 08464ef
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 7004668
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 891b8ae
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 588f5af
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 29fc760
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 081be87
Merge branch 'develop' into enabler/stage_archive
AntonMFernando-NOAA 3b684de
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 4cb8dd3
modified ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 588d607
Merge branch 'enabler/stage_archive' of https://github.com/AntonMFern…
AntonMFernando-NOAA 0dc9877
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA d0800a0
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA ba0e024
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA 29032a2
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 83d01ae
Merge branch 'develop' into enabler/stage_archive
AntonMFernando-NOAA 8d037c9
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 660e50c
modified stage_ic.py and ex-script
AntonMFernando-NOAA e4385d7
update ush\python\pygfs\task\stage_ic.py
AntonMFernando-NOAA ffba9c6
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA fde3a02
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA c5f45e1
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 43837b5
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA cdc4e6f
Merge remote-tracking branch 'origin/develop' into enabler/stage_archive
AntonMFernando-NOAA 5d479ac
update more sub-yamls
AntonMFernando-NOAA b087db4
Merge remote-tracking branch 'origin/develop' into enabler/stage_archive
AntonMFernando-NOAA 4104a38
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA df05833
Merge remote-tracking branch 'origin/develop' into enabler/stage_archive
AntonMFernando-NOAA b7dd2fd
Merge branch 'enabler/stage_archive' of https://github.com/AntonMFern…
AntonMFernando-NOAA 67d87e7
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA 96a988f
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA 7112905
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA d873400
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA 2827a42
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA e69e955
rework methods
AntonMFernando-NOAA 06e6851
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA 8dc1d96
Merge branch 'NOAA-EMC:develop' into enabler/stage_archive
AntonMFernando-NOAA 4982a00
remove list vars
AntonMFernando-NOAA 100ffa3
update ush/python/pygfs/task/stage_ic.py
AntonMFernando-NOAA 05a468a
update gcafs vars
AntonMFernando-NOAA 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,9 @@ | ||
| aero: | ||
| mkdir: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_CHEM_ANALYSIS_MEM = COMOUT_CHEM_ANALYSIS_MEM_list[imem] %} | ||
| - "{{ COMOUT_CHEM_ANALYSIS_MEM }}" | ||
| {% endfor %} | ||
|
|
||
| link_req: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_CHEM_ANALYSIS_MEM = COMOUT_CHEM_ANALYSIS_MEM_list[imem] %} | ||
| {% for ftype in ["aero_varbc_params.tar"] %} | ||
| {% if path_exists(ICSDIR ~ "/" ~ COMOUT_CHEM_ANALYSIS_MEM | relpath(ROTDIR) ~ "/" ~ RUN ~ ".t" ~ current_cycle_HH ~ "z." ~ ftype) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_CHEM_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.{{ ftype }}", "{{ COMOUT_CHEM_ANALYSIS_MEM }}"] | ||
| - ["{{ ICSDIR }}/{{ COMOUT_CHEM_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ RUN }}.t{{ current_cycle_HH }}z.aero_varbc_params.tar", | ||
| "{{ COMOUT_CHEM_ANALYSIS_MEM }}"] | ||
| {% endif %} | ||
| {% endfor %} | ||
| {% endfor %} # mem loop |
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,18 +1,10 @@ | ||
| atmosphere_cold: | ||
| mkdir: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ATMOS_INPUT_MEM = COMOUT_ATMOS_INPUT_MEM_list[imem] %} | ||
| - "{{ COMOUT_ATMOS_INPUT_MEM }}" | ||
| {% endfor %} # mem loop | ||
| link_req: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ATMOS_INPUT_MEM = COMOUT_ATMOS_INPUT_MEM_list[imem] %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_INPUT_MEM | relpath(ROTDIR) }}/gfs_ctrl.nc", "{{ COMOUT_ATMOS_INPUT_MEM }}"] | ||
| - ["{{ ICSDIR }}/{{ COMIN_ATMOS_INPUT_MEM | relpath(ROTDIR) }}/gfs_ctrl.nc", "{{ COMOUT_ATMOS_INPUT_MEM }}"] | ||
| {% for ftype in ["gfs_data", "sfc_data"] %} | ||
| {% for ntile in range(1, ntiles + 1) %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_INPUT_MEM | relpath(ROTDIR) }}/{{ ftype }}.tile{{ ntile }}.nc", "{{ COMOUT_ATMOS_INPUT_MEM }}"] | ||
| - ["{{ ICSDIR }}/{{ COMIN_ATMOS_INPUT_MEM | relpath(ROTDIR) }}/{{ ftype }}.tile{{ ntile }}.nc", "{{ COMOUT_ATMOS_INPUT_MEM }}"] | ||
| {% endfor %} # ntile | ||
| {% endfor %} # ftype | ||
| {% endfor %} # mem loop |
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,13 +1,5 @@ | ||
| atmosphere_ens_perturbation: | ||
| mkdir: | ||
| {% for mem in range(first_mem + 1, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[imem] %} | ||
| - "{{ COMOUT_ATMOS_ANALYSIS_MEM }}" | ||
| {% endfor %} # mem loop | ||
| link_req: | ||
| {% for mem in range(first_mem + 1, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ATMOS_ANALYSIS_MEM = COMOUT_ATMOS_ANALYSIS_MEM_list[imem] %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ATMOS_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ m_prefix }}.fv3_perturbation.nc", "{{ COMOUT_ATMOS_ANALYSIS_MEM }}/{{ RUN }}.t{{ current_cycle_HH }}z.increment.atm.i006.nc"] | ||
| {% endfor %} # mem loop |
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,35 +1,14 @@ | ||
| {% set START_ICE_FROM_ANA = False %} | ||
| {% if DO_JEDIOCNVAR == True and RUN == 'gdas' %} | ||
| {% set START_ICE_FROM_ANA = True %} | ||
| {% endif %} | ||
| {% if DO_STARTMEM_FROM_JEDIICE == True and RUN == 'enkfgdas' %} | ||
| {% set START_ICE_FROM_ANA = True %} | ||
| {% endif %} | ||
| ice: | ||
| {% if START_ICE_FROM_ANA == True %} | ||
| mkdir: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ICE_ANALYSIS_MEM = COMOUT_ICE_ANALYSIS_MEM_list[imem] %} | ||
| - "{{ COMOUT_ICE_ANALYSIS_MEM }}" | ||
| {% endfor %} # mem loop | ||
| link_req: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ICE_ANALYSIS_MEM = COMOUT_ICE_ANALYSIS_MEM_list[imem] %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ICE_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ m_prefix }}.cice_model_anl.res.nc", "{{ COMOUT_ICE_ANALYSIS_MEM }}/{{ m_prefix }}.analysis.cice_model.res.nc"] | ||
| {% endfor %} # mem loop | ||
| {% set COMOUT_ICE_ANALYSIS_MEM = COMOUT_ICE_ANALYSIS_MEM %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ICE_ANALYSIS_MEM | relpath(ROTDIR) }}/{{ m_prefix }}.cice_model_anl.res.nc", | ||
| "{{ COMOUT_ICE_ANALYSIS_MEM }}/{{ m_prefix }}.analysis.cice_model.res.nc"] | ||
| {% else %} | ||
| mkdir: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ICE_RESTART_PREV_MEM = COMOUT_ICE_RESTART_PREV_MEM_list[imem] %} | ||
| - "{{ COMOUT_ICE_RESTART_PREV_MEM }}" | ||
| {% endfor %} # mem loop | ||
| link_req: | ||
| {% for mem in range(first_mem, last_mem + 1) %} | ||
| {% set imem = mem - first_mem %} | ||
| {% set COMOUT_ICE_RESTART_PREV_MEM = COMOUT_ICE_RESTART_PREV_MEM_list[imem] %} | ||
| - ["{{ ICSDIR }}/{{ COMOUT_ICE_RESTART_PREV_MEM | relpath(ROTDIR) }}/{{ m_prefix }}.cice_model.res.nc", "{{ COMOUT_ICE_RESTART_PREV_MEM }}"] | ||
| {% endfor %} # mem loop | ||
| {% 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be replaced by
num_tiles.