Skip to content

Commit

Permalink
Remove some unneeded debug log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Dec 1, 2024
1 parent 82ba004 commit 4686632
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ else
log_msg_if_debug "conda was found"
noconda=0
fi
echo "noconda = $noconda"

# Check that the modify script exists and can be used

MODIFY_FATES_PARAMFILE="$FATESDIR/tools/modify_fates_paramfile.py"
Expand All @@ -101,15 +99,13 @@ cmd="$MODIFY_FATES_PARAMFILE --help"
# If not runable as is if conda is available try some different options
$(check_if_runable "$cmd" "$msg")
if [[ "$?" -eq "0" ]]; then
echo "failed..."
if [[ $noconda -eq "0" ]]; then
prefix="conda run -n ctsm_pylib"
echo "Attempting to run under \'$prefix\'"
cmdrun="$prefix $cmd"
msg="$prefix $MODIFY_FATES_PARAMFILE can NOT be successfully run"
$(check_if_runable "$cmdrun" "$msg")
if [[ "$?" -eq "0" ]]; then
echo "failed..."
echo "Attempting to activate the ctsm_pylib environment"
$(conda activate ctsm_pylib)
check_error $? "Trouble activating the conda ctsm_pylib environment"
Expand Down

0 comments on commit 4686632

Please sign in to comment.