Install Astra¶
Simple download functions for Astra, generator
In [1]:
Copied!
from astra.install import install_astra, install_generator
from astra.install import install_astra, install_generator
In [2]:
Copied!
astra_bin = install_astra('.', verbose=True)
astra_bin = install_astra('.', verbose=True)
Downloading http://www.desy.de/~mpyflo/Astra_for_Mac_OSX/Astra to /Users/chrisonian/Code/GitHub/lume-astra/docs/examples/Astra Installed Astra in /Users/chrisonian/Code/GitHub/lume-astra/docs/examples/Astra, and set $ASTRA_BIN equal to this.
In [3]:
Copied!
generator_bin = install_generator('.', verbose=True)
generator_bin = install_generator('.', verbose=True)
Downloading http://www.desy.de/~mpyflo/Astra_for_Mac_OSX/generator to /Users/chrisonian/Code/GitHub/lume-astra/docs/examples/generator Installed Astra's generator in /Users/chrisonian/Code/GitHub/lume-astra/docs/examples/generator, and set $GENERATOR_BIN equal to this.
In [4]:
Copied!
# Cleanup
import os
os.remove(astra_bin)
os.remove(generator_bin)
# Cleanup
import os
os.remove(astra_bin)
os.remove(generator_bin)
Install Astra Examples¶
In [5]:
Copied!
from astra.install import install_examples
from astra.install import install_examples
In [6]:
Copied!
install_examples("~/astra_examples/")
install_examples("~/astra_examples/")