new micromamba env

This commit is contained in:
2025-04-01 10:10:16 +02:00
parent 7e8a384c96
commit 032a97d066
4 changed files with 41 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
#/bin/bash
#source /opt/gfa/python
source anaconda_env
ipython --profile=eco
#python /sf/bernina/config/src/python/eco/startup.py -s bernina "$@" -l
default=sfb312
dest=${1:-$default}
source mm_bernina_env $dest
ipython --pylab --profile=eco3 --no-banner -i -c "run /sf/bernina/config/src/python/eco/startup_inline_new.py -l -s bernina"

BIN
micromamba Executable file

Binary file not shown.

16
mm_bernina Executable file
View File

@@ -0,0 +1,16 @@
# !! Contents within this block are managed by 'conda init' !!
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'micromamba shell init' !!
export MAMBA_EXE='/gfa/.mounts/sf_bernina/bin/micromamba';
export MAMBA_ROOT_PREFIX='/gfa/.mounts/sf_bernina/applications/mm';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE" # Fallback on help from micromamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<

21
mm_bernina_env Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
#if [ $# != 1 ]; then
# echo "Usage: $0 [alvra|bernina]"
# exit 1
#fi
default="sfb312"
dest=${1:-$default}
echo Loading Bernina Micromamba/conda Python # <<< conda initialize <<<
source /sf/bernina/bin/mm_bernina
micromamba config --add envs_dirs /sf/bernina/applications/mm/envs
#conda config --set env_prompt '({name})'
echo Activating Micromamba/conda environment ${1:-$dest}
micromamba activate ${1:-$dest}
#source activate $dest