Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Mar 25, 2024
1 parent 932d379 commit fad5b81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions slurm/initialize.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if [ "$generate_data" = true ] ; then
fi

julia --color=no --project=experiments/$experiment_id -e '
@show Base.active_project()
import CalibrateAtmos
CalibrateAtmos.initialize("'$experiment_id'")
'
Expand Down
10 changes: 5 additions & 5 deletions slurm/model_run.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ output=output/$experiment_id/$format_i/$member/model_log.out

# Run the forward model
srun --output=$output julia --color=no --project=experiments/$experiment_id -e '
# @show Base.active_project(); using Pkg; Pkg.build("CalibrateAtmos"); Pkg.instantiate(;verbose=true)
import CalibrateAtmos
@show Base.active_project()
import CalibrateAtmos as CAL
experiment_id = "'$experiment_id'"
i = '$i'
member = '$SLURM_ARRAY_TASK_ID'
include("experiments/$experiment_id/model_interface.jl")
physical_model = CalibrateAtmos.get_forward_model(Val(Symbol(experiment_id)))
config = CalibrateAtmos.get_config(physical_model, member, i, experiment_id)
CalibrateAtmos.run_forward_model(physical_model, config)
physical_model = CAL.get_forward_model(Val(Symbol(experiment_id)))
config = CAL.get_config(physical_model, member, i, experiment_id)
CAL.run_forward_model(physical_model, config)
'
3 changes: 2 additions & 1 deletion slurm/update.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ echo "experiments/$experiment_id"
# julia --project=experiments/$experiment_id -e 'using Conda; Conda.add("scipy=1.8.1", channel="conda-forge"); Conda.add("scikit-learn=1.1.1")'

julia --color=no --project=experiments/$experiment_id -e '
# @show Base.active_project(); using Pkg; Pkg.build("CalibrateAtmos"); Pkg.instantiate(;verbose=true)
# using Pkg; Pkg.build("CalibrateAtmos"); Pkg.instantiate(;verbose=true)
@show Base.active_project()
import CalibrateAtmos as CAL
experiment_id = "'$experiment_id'"
Expand Down

0 comments on commit fad5b81

Please sign in to comment.