-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_setup.sh
More file actions
51 lines (35 loc) · 1.38 KB
/
Copy pathlinux_setup.sh
File metadata and controls
51 lines (35 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Install swift
wget https://download.swift.org/swift-6.0.3-release/ubuntu2404/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-ubuntu24.04.tar.gz
tar xzf swift-6.0.3-RELEASE-ubuntu24.04.tar.gz
sudo mv swift-6.0.3-RELEASE-ubuntu24.04 /usr/local/swift
rm swift-6.0.3-RELEASE-ubuntu24.04.tar.gz
export PATH="/usr/local/swift/usr/bin:$PATH"
# Install libc
sudo apt update
sudo apt install -y build-essential libc6-dev
# Install conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b
~/miniconda3/bin/conda init
export PATH="$HOME/miniconda3/bin:$PATH"
# Source the conda configuration to make it available in current session
source ~/miniconda3/etc/profile.d/conda.sh
# Install repos
mkdir swift_loop_linux
cd swift_loop_linux/
git clone https://github.com/tidepool-org/LoopAlgorithmToPython.git
cd LoopAlgorithmToPython
git checkout dev
./build.sh
cd ../
git clone https://github.com/tidepool-org/data-science-simulator.git
cd data-science-simulator
git checkout dev
conda env create -f conda-environment-swift.yml
mkdir -p ~/data/simulator/processed_data/insulin_algorithm_testing_framework/510k_short_run/
mkdir -p ~/data/simulator/processed/icgm/
# Set environment and run
conda activate tidepool-data-science-simulator-swift
export PYTHONPATH=.
python tidepool_data_science_simulator/projects/swift_api/swift_loop_example.py