- Download miniconda (and despite the warning the installed gives, make sure to select the "Add Anaconda to my PATH enviroment variable" option)
- If you don't already have windows build tools installed, install them from here:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
- From Anaconda Prompt (miniconda3)1, execute
conda create --name py37 python=3.7
- Execute
conda activate py37
- Execute
conda install astropy h5py beautifulsoup4 html5lib bleach pyyaml pandas sortedcontainers pytz setuptools mpmath bottleneck ipython pip
- Execute
pip install -U transitleastsquares
- Execute
pip install -U wotan
cd
into the top levelsunnyhills
directory on your machine within the conda prompt (for me this iscd Documents
thencd GitHub
thencd sunnyhills
)- Execute the command
conda install conda-build
- Execute
conda develop .
- Execute
pip install -e .
- Note that if you ever want to uninstall the sunnyhills repo, you can use
pip uninstall .
orconda develop -u .
- Note that if you ever want to uninstall the sunnyhills repo, you can use
- To start using this environment in VSCode, go to
view
thencommand palette
thenPython: Select Interpreter
then clickEnter interpreter path...
then enter the path to thepython.exe
file within the environment folder oft this enviroment you just made. For me, this is something likeC:\Users\Research\miniconda3\envs\py37\python.exe
(note that you can find the environment underenvs
underminiconda3
)
Finally, you should now be able to use everything in this perfectly working environment!
[1] I recommend pinning the Anaconda Prompt to your taskbar once you find it (for me it's located around C:\Users\Research\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Anaconda Prompt (miniconda3).lnk
). I wouldn't use the Anaconda Powershell Prompt because I didn't test this approach on it.
- Also note that you might have to launch VSCode from Anaconda Prompt (execute
code
) after activating the virtual environment.
- Colab Setup: 1).
pip3
installwotan
,transitleastsquares
, andlightkurve
2). install fortan viasudo apt-get install gfortran
3). Updatematplotlib
version viapip3 install 'matplotlib==3.3.1'
- Installing the
sunnyhills
python package- Not really recommended way to do things anymore, just keeping it here for storage.
$ python setup.py develop
, when executed under the directory of this repository, will install thesunnyhills
python package to your computer's working path. It'll also let you edit code in/sunnyhills/
, and then import it from anywhere else on your computer.
- Shields: pretty nice website for shields