You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
echo "ERROR: cannot run AML environment locking in non-linux environment. Windows users can do this using WSL - https://docs.microsoft.com/en-us/windows/wsl/install"
exit 1
else
echo "Starting AML environment locking..."
fi
# get environment name from primary dependencies YAML file
# remove python version hash (technically not locked, so still potential for problems here if python secondary deps change)
while IFS='' read -r line; do
if [[ $line == *"- python="* ]]; then
IFS='=' read -ra python_arr <<< "$line"
unset python_arr[-1]
echo "${python_arr[0]}"="${python_arr[1]}"
elif [[ ! $line == "#"* ]]; then
echo "${line}"
fi
done < environment.yml > environment.yml.tmp
echo "# WARNING - DO NOT EDIT THIS FILE MANUALLY" > environment.yml
echo "# Please refer to the environment documentation for instructions on how to create a new version of this file: https://github.com/microsoft/InnerEye-DeepLearning/blob/main/docs/environment.md" >> environment.yml