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

Test only & not to be merged: Pull GitHub action #696

Closed
wants to merge 4 commits into from
Closed
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
23 changes: 21 additions & 2 deletions .github/workflows/ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,26 @@ jobs:
run: |
./compiler.sh no-e

- name: Run Test
- name: Run V3 Test
run: |
cd test/LowerColorado_TX
python -m nwm_routing -f -V3 test_AnA.yaml
python -m nwm_routing -f -V3 test_AnA.yaml
cd ../..

- name: Run V4 Test on NHD
run: |
cd test/LowerColorado_TX
python -m nwm_routing -f -V4 test_AnA_V4_NHD.yaml
cd ../..

- name: Run V4 Test on HYFeature
run: |
cd test/LowerColorado_TX_v4
python -m nwm_routing -f -V4 test_AnA_V4_HYFeature.yaml
cd ../..

- name: Run V4 Test on HYFeature without DA
run: |
cd test/LowerColorado_TX_v4
python -m nwm_routing -f -V4 test_AnA_V4_HYFeature_noDA.yaml
cd ../..
4 changes: 2 additions & 2 deletions test/LowerColorado_TX_v4/test_AnA_V4_HYFeature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ network_topology_parameters:
columns:
key: 'id'
downstream: 'toid'
dx : 'lengthkm'
dx : 'length_m'
n : 'n'
ncc : 'nCC'
s0 : 'So'
Expand Down Expand Up @@ -92,5 +92,5 @@ output_parameters:
stream_output :
stream_output_directory: output/
stream_output_time: 1 #[hr]
stream_output_type: '.pkl' #please select only between netcdf '.nc' or '.csv' or '.pkl'
stream_output_type: '.nc' #please select only between netcdf '.nc' or '.csv' or '.pkl'
stream_output_internal_frequency: 60 #[min] it should be order of 5 minutes. For instance if you want to output every hour put 60
96 changes: 96 additions & 0 deletions test/LowerColorado_TX_v4/test_AnA_V4_HYFeature_noDA.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# $ python3 -m nwm_routing -f -V4 test_AnA_V4_HYFeature.yaml
#--------------------------------------------------------------------------------
log_parameters:
#----------
showtiming: True
log_level : DEBUG
#--------------------------------------------------------------------------------
network_topology_parameters:
#----------
supernetwork_parameters:
#----------
geo_file_path: domain/LowerColorado_NGENv20.gpkg
columns:
key: 'id'
downstream: 'toid'
dx : 'length_m'
n : 'n'
ncc : 'nCC'
s0 : 'So'
bw : 'BtmWdth'
waterbody : 'rl_NHDWaterbodyComID'
gages : 'rl_gages'
tw : 'TopWdth'
twcc : 'TopWdthCC'
musk : 'MusK'
musx : 'MusX'
cs : 'ChSlp'
alt: 'alt'
waterbody_parameters:
#----------
break_network_at_waterbodies: True
#--------------------------------------------------------------------------------
compute_parameters:
#----------
parallel_compute_method: by-subnetwork-jit-clustered # serial
compute_kernel : V02-structured
assume_short_ts : True
subnetwork_target_size : 10000
cpu_pool : 36
restart_parameters:
#----------
start_datetime : 2023-04-02_00:00
lite_channel_restart_file : #restart/RESTART.2020082600_DOMAIN1
lite_waterbody_restart_file : #restart/waterbody_restart_202006011200
hybrid_parameters:
run_hybrid_routing: False
diffusive_domain : #domain/coastal_domain_subset.yaml
use_natl_xsections: False
topobathy_domain : #domain/final_diffusive_natural_xs.nc
run_refactored_network: False
refactored_domain: #domain/refactored_coastal_domain_subset.yaml
refactored_topobathy_domain: #domain/refac_final_diffusive_natural_xs.nc
coastal_boundary_domain: #domain/coastal_boundary_domain.yaml
forcing_parameters:
#----------
qts_subdivisions : 12
dt : 300 # [sec]
qlat_input_folder : channel_forcing
qlat_file_pattern_filter : "*.CHRTOUT_DOMAIN1.csv"
coastal_boundary_input_file : #boundary_forcing
nts : 288 # 288 for 1day; 2592 for 9 days
max_loop_size : 24 # [hr]
data_assimilation_parameters:
#----------
usgs_timeslices_folder : usgs_timeslices/
usace_timeslices_folder : usace_timelices/
streamflow_da:
#----------
streamflow_nudging : False
diffusive_streamflow_nudging : False
lastobs_output_folder : lastobs/
reservoir_da:
#----------
reservoir_persistence_da:
#----------
reservoir_persistence_usgs : False
reservoir_persistence_usace : False
reservoir_rfc_da:
#----------
reservoir_rfc_forecasts : False
reservoir_rfc_forecasts_time_series_path: rfc_timeseries/
reservoir_rfc_forecasts_lookback_hours : 28
reservoir_rfc_forecasts_offset_hours : 28
#--------------------------------------------------------------------------------
output_parameters:
#----------
test_output : output/lcr_flowveldepth.pkl
lite_restart:
#----------
lite_restart_output_directory: restart/
lakeout_output: lakeout/
stream_output :
stream_output_directory: output/
stream_output_time: 1 #[hr]
stream_output_type: '.nc' #please select only between netcdf '.nc' or '.csv' or '.pkl'
stream_output_internal_frequency: 60 #[min] it should be order of 5 minutes. For instance if you want to output every hour put 60
Loading