Skip to content

Commit

Permalink
fixes bugs for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yumengch committed Jul 19, 2024
1 parent 58dafb0 commit 9e6094f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_linux_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: pip install -v .

- name: run example
run: mpiexec -n 4 python -u example/main.py
run: mpiexec --oversubscribe -n 4 python -u example/main.py

- name: Setup tmate session
if: ${{ failure() }}
Expand Down
4 changes: 2 additions & 2 deletions example/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

### Filepath ###
# path to initial ensemble, the filename is formatted for different time step
init_ens_path:str = os.path.join('/home/ia923171/software/PDAF_V2.2.1/tutorial/inputs_online', 'ens_{i}.txt')
init_ens_path:str = os.path.join('/home/runner/work/pyPDAF/pyPDAF/inputs_online', 'ens_{i}.txt')
# path to initial truth
init_truth_path:str = os.path.join('/home/ia923171/software/PDAF_V2.2.1/tutorial/inputs_online', 'true_initial.txt')
init_truth_path:str = os.path.join('/home/runner/work/pyPDAF/pyPDAF/inputs_online', 'true_initial.txt')


#### Model configurations ####
Expand Down
4 changes: 2 additions & 2 deletions example/config_obsA.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
# name of the observation
obs_name = 'A'
# path to the observation files
obs_path:str = os.path.join('/home/ia923171/software/PDAF_V2.2.1/tutorial/inputs_online', 'obs_step{i}.txt')
obs_path:str = os.path.join('/home/runner/work/pyPDAF/pyPDAF/inputs_online', 'obs_step{i}.txt')
# time steps between observations / assimilation frequency
dtobs:int = 2
# Observation error standard deviation
rms_obs:float = 0.5
# Switch for assimilating observation type A
assim:bool = False
assim:bool = True
# Type of distance computation to use for localization
# It is mandatory for OMI even if we don't use localisation
# 0=Cartesian 1=Cartesian periodic
Expand Down
4 changes: 2 additions & 2 deletions example/config_obsB.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
# name of the observation
obs_name = 'B'
# path to the observation files
obs_path:str = os.path.join('/home/ia923171/software/PDAF_V2.2.1/tutorial/inputs_online', 'obsB_step{i}.txt')
obs_path:str = os.path.join('/home/runner/work/pyPDAF/pyPDAF/inputs_online', 'obsB_step{i}.txt')
# time steps between observations / assimilation frequency
dtobs:int = 2
# Observation error standard deviation
rms_obs:float = 0.5
# Switch for assimilating observation type A
assim:bool = True
assim:bool = False
# Type of distance computation to use for localization
# It is mandatory for OMI even if we don't use localisation
# 0=Cartesian 1=Cartesian periodic
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install_requires =
[pyPDAF]
pwd = /home/runner/work/pyPDAF/pyPDAF
PDAF_dir = PDAF_V2.2.1
cmake_config_path = /home/runner/work/pyPDAF/pyPDAF/linux_gfortran_openmpi_pypdaf.cmake
cmake_config_path = /home/runner/work/pyPDAF/pyPDAF/PDAFBuild/linux_gfortran_openmpi_pypdaf.cmake
CC = mpicc
condaBuild = False
# if MKL is used, give the path to the static MKL library
Expand Down

0 comments on commit 9e6094f

Please sign in to comment.