Getting started with yt-3.0-artio
# go to some <install_path> where you want yt to install cd /<install_path>/ # get the install file for the yt development branch wget http://hg.yt-project.org/yt/raw/yt/doc/install_script.sh # installs all necessary packages/dependencies to a folder called yt-x86_64 (depending on your system architecture) bash install_script.sh # initialize a yt environment, which tells yt where to look for files (e.g. defining $YT_DEST). source /<install_path>/yt-x86_64/bin/activate cd $YT_DEST/src/yt-hg/ # now pull in the artio changes hg pull https://<user_name>@bitbucket.org/sleitner/yt-3.0-artio/ # update the installation to yt-3.0 hg up -C yt-3.0 # compile the development branch with all of the changes for artio python setup.py develop #compiles yt
There are several ways to do this. Note that it is possible to compile several different clones of yt that use the same dependencies (it is not necessary to do the full install multiple times). To do this clone the yt repo that you would like to compile/run; source the old activate as usual; cd to the new clone's directory; python2.7 setup.py develop. You may now edit/compile/run the new clone and push changes to the corresponding fork.
- Scripts are now stored here https://bitbucket.org/sleitner/yt-scripts
source /<install_path>/yt-x86_64/bin/activate cd $YT_DEST/src/yt-hg/ wget http://www.astro.umd.edu/~sleitner/yt/artdat.tar tar -xvf artdat.tar tests/
then clone yt-scripts and pull them into $YT_DEST/src/yt-hg/
Run the test scripts:
python2.7 slice.py python2.7 projection.py python2.7 profile.py
The resulting outputs should look like the following plots and text.
yt pastebin <file.py>
outputs http://paste.yt-project.org/show/<filenumber>/ that can either be viewed or you can retrieve the script:
yt pastebin_grab <filenumber>