Skip to content

Commit fe83897

Browse files
author
Ryan Maguire
authored
Merge pull request #5 from NASA-Planetary-Science/v1.3-dev
V1.3 dev
2 parents 426ab46 + 0778b6f commit fe83897

534 files changed

Lines changed: 51600 additions & 21500 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ data/
1111
.vscode/
1212
__pycache__
1313
*~
14+
*.ppm
15+
*.o

config_modules.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
echo -e "\nBuilding modules...\n"
2+
python setup.py config build_ext --inplace
3+
4+
rm -rf build/
5+
6+
# Move the compiled shared objects (.so) files to the rss_ringoccs/ folder.
7+
# This way you can import them directly into python if the rss_ringoccs
8+
# package is in your path.
9+
mv *.so ./rss_ringoccs/
Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ osstring=`uname`
77

88
if [ "$osstring" = "Darwin" ]; then
99
BASH_FILE=bash_profile
10-
fil="Anaconda3-2019.07-MacOSX-x86_64.sh"
10+
fil="Anaconda3-2020.02-MacOSX-x86_64.sh"
1111
elif [ "$osstring" = "Linux" ]; then
1212
BASH_FILE=bashrc
13-
fil="Anaconda3-2019.07-Linux-x86_64.sh"
13+
fil="Anaconda3-2020.02-Linux-x86_64.sh"
1414
else
1515
echo "Operating System not recognized"
1616
echo "Only MacOSX and Linux supported"
@@ -27,7 +27,7 @@ webfil="$web$fil"
2727
MY_DIRECTORY=$(pwd)
2828
cd ~
2929
# Check to see if anaconda3 exists on your computer.
30-
if [ -d anaconda3 ]; then
30+
if [ -d ~/opt/anaconda3 ]; then
3131
echo -e ' \t ' "You already have Anaconda on your computer."
3232
echo -e ' \t ' "Running updates..."
3333
else
@@ -50,11 +50,11 @@ source .$BASH_FILE
5050

5151
# Check that anaconda3 is included in your path
5252
echo -e ' \t ' "Checking your PATH variable..."
53-
if [[ ":$PATH:" == *"/anaconda3/bin"* ]]; then
53+
if [[ ":$PATH:" == *"~/opt/anaconda3/bin"* ]]; then
5454
echo -e ' \t ' "PATH variable is set"
5555
else
56-
echo -e ' \t ' "Adding ~/anaconda3/bin to your PATH"
57-
echo 'export PATH="~/anaconda3/bin:$PATH"' >>~/.$BASH_FILE
56+
echo -e ' \t ' "Adding ~/opt/anaconda3/bin to your PATH"
57+
echo 'export PATH="~/opt/anaconda3/bin:$PATH"' >>~/.$BASH_FILE
5858
fi
5959

6060
# Source .bashrc/.bash_profile to update you path.
@@ -68,6 +68,7 @@ yes | conda update conda
6868

6969
# Install Spiceypy
7070
echo -e ' \t ' "Installing spiceypy..."
71+
conda config --add channels conda-forge
7172
yes | conda install -c conda-forge spiceypy
7273

7374
# Install PyMieScatt
@@ -80,15 +81,15 @@ source .$BASH_FILE
8081
cd "$MY_DIRECTORY"
8182

8283
# Install rss_ringoccs.
83-
cd ./rss_ringoccs/diffrec/
84-
85-
# Remove any old compiled binary files.
86-
rm -f *.so
84+
echo -e ' \t ' "Building librssringoccs..."
85+
cd librssringoccs/
86+
chmod +x config_librssringoccs.sh
87+
./config_librssringoccs.sh
8788

8889
# Compile the new binary files.
89-
python setup.py config --compiler=gnu99 build_ext --inplace
90-
rm -rf build/
91-
92-
cd "$MY_DIRECTORY"
90+
echo -e ' \t ' "Building modules..."
91+
cd ../
92+
chmod +x config_modules.sh
93+
./config_modules.sh
9394

9495
echo "Installation complete"

docs/index.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/rss_ringoccs.calibration.calc_f_sky_recon.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/rss_ringoccs.calibration.calc_freq_offset.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/rss_ringoccs.calibration.calc_tau_thresh.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/rss_ringoccs.calibration.calibration_class.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/rss_ringoccs.calibration.dlp_class.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/rss_ringoccs.calibration.freq_offset_fit.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)