| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Go to the directory where you want the Python code to be installed and simply download it or clone it via git as::
git clone https://github.com/SNflows/flows.git
cd flowsRequired dependencies can be installed using the following command. It is recommended to do this in a dedicated virtualenv or similar:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txtIn addition, in order to run tests and do development, do
pip install -r dev_requirements.txt # in same virtual environment as above
_pyver=$(find env/lib/ -type d -mindepth 1 -maxdepth 1 | cut -d '/' -f 3)
ln -s ../env/lib/${_pyver}/site-packages/tendrils/utils/config.ini flows/config.ini
wget -O tests/input/2020aatc/SN2020aatc_K_20201213_495s.fits.gz https://anon.erda.au.dk/share_redirect/FJGx69KFvg
wget -O tests/input/2020lao/59000.96584_h_e_20200531_33_1_1_1_2020lao_LT_gp.fits.gz https://anon.erda.au.dk/share_redirect/E98lmqOVWf
wget -O tests/input/2020lao/subtracted/59000.96584_h_e_20200531_33_1_1_1_2020lao_LT_gpdiff.fits.gz https://anon.erda.au.dk/share_redirect/bIxyzrRXbg
wget -O tests/input/2021wyw/ADP.2021-10-15T11_40_06.553.fits.gz https://anon.erda.au.dk/share_redirect/Gr8p2K7ph5TODO: Reformulate following bullet point and check/decide on which config paths are/should be available...:
[api]
token = <my api token>
[TNS]
api_key = <AUFLOWS_BOT API key>where your API token can be found on the Flows webpage.
You can test your installation by going to the root directory where you cloned the repository and run the command:
pytestText coming soon...
##########################################################
### --Tendrils configurations used at FLOWS run-time-- ###
### Configurations without a leading '#' are required ###
### and must be specified by the user. ###
### Configurations with a leading '#' are optional, ###
### and their assigned values are documentation of ###
### their default values in the FLOWS pipeline. ###
### Default values of optional configurations with a ###
### leading '$' signify environment variables resolved ###
### at run-time; their fallbacks are given following ###
### a '/'. ###
##########################################################
[api]
# photometry_cache = None
# pipeline = False
token = None
# database:
# username and password required for run_catalogs.py,
# the user is a registered user in the flows database
# with access to the 'adastra' schema
[database]
# username = $AUDBUsername/None
# password = $AUDBPassword/None
[photometry]
archive_local = None
# output = .
# TNS:
# api_key required for run_querytns.py,
# user registration at
# https://www.wis-tns.org/user
# api_key is that of a TNS bot; ask a flows group
# member for one
# if user_id and user_name are not given, fallback
# to a TNS bot's bot_id and bot_name, which must
# match with api_key
[TNS]
# api_key = None
# bot_id = 191396
# bot_name = AUFLOWS_BOT2
# user_id = None
# user_name = None
[URL]
# base_url = https://flows.phys.au.dk/api/
# catalogs_url = reference_stars.php
# catalogs_missing_url = catalog_missing.php
# cleanup_photometry_status_url = cleanup_photometry_status.php
# datafiles_url = datafiles.php
# filters_url = filters.php
# lightcurves_url = lightcurve.php
# photometry_upload_url = upload_photometry.php
# photometry_url = download_photometry.php
# set_photometry_status_url = set_photometry_status.php
# sites_url = sites.php
# targets_post_url = targets_add.php
# targets_url = targets.php
# verify_ssl = True
[ztf]
# output_photometry = .| Back | FazBrowse Home | New Git URL |