Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into fix_nlte_normaliz…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
wkerzendorf committed Apr 29, 2019
2 parents dff362e + f98ef14 commit 221d72d
Show file tree
Hide file tree
Showing 145 changed files with 5,720 additions and 2,316 deletions.
114 changes: 48 additions & 66 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,98 +8,80 @@ python:
virtualenv:
system_site_packages: true

cache:
apt: true
addons:
apt:
packages:
- clang
- gdb

sudo: true

env:
global:
- COMPILER=gcc
- PANDAS_VERSION=0.16
- ASTROPY_USE_SYSTEM_PYTEST=1
- SETUP_CMD='test'
- TEST_MODE='normal'
- TARDIS_REF_DATA_URL='https://github.com/tardis-sn/tardis-refdata.git'
- REF_DATA_HOME=$HOME/tardis-refdata
- REF_DATA_GITHUB_URL='https://github.com/tardis-sn/tardis-refdata.git'
- MINICONDA_URL='http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh'
- SAVE_COVERAGE=false
- GIT_LFS_SKIP_SMUDGE=1
- TARDIS_BUILD_DIR=$TRAVIS_BUILD_DIR
# Doctr deploy key for tardis-sn/tardis
- secure: "LrhEnB3RgZ/ZA4PruYSF7pkzlY+LrfF1GKpeU+wcG5v/BMIsoTGySO9C1T7XJfsCFMaKMiJoa7ZhJEXPlss9i9PzxFsvbBrBfwb5lPurTbQwqBN4qW/+u2V1kSLAwtVJIHzenVB25PevjkCz8TeAv6DWyHgBWBmImJaTC3d+1/Q="

matrix:
include:
- python: 2.7
env:
- COMPILER=gcc
- SETUP_CMD='test --coverage --args="--tardis-refdata=$HOME/tardis-refdata/"'
- TEST_MODE='spectrum'
- SAVE_COVERAGE=true

- python: 2.7
env:
- COMPILER=clang
- SETUP_CMD='test --args="--tardis-refdata=$HOME/tardis-refdata/"'
- TEST_MODE='spectrum'

#trouble with osx building due to segfault at cython (https://github.com/cython/cython/issues/2199)
- os: osx
language: generic
env:
- COMPILER=clang
- SETUP_CMD='test --args="--tardis-refdata=$HOME/tardis-refdata/"'
- TEST_MODE='spectrum'
- MINICONDA_URL='http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh'


- python: 2.7
env: SETUP_CMD='test'

addons:
apt:
packages:
- clang
- gdb


cache:
apt: true
directories:
- $HOME/miniconda
#- $REF_DATA_HOME


before_install:
# We do this to make sure we get the dependencies so pip works below
- export PYTHONIOENCODING=UTF8
- wget $MINICONDA_URL -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- hash -r
- conda update --yes conda
- if [[ $TEST_MODE == 'spectrum' ]]; then conda install -c conda-forge git-lfs=2.2.1 -y; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs install --skip-smudge; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git clone $TARDIS_REF_DATA_URL $HOME/tardis-refdata; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then cd $HOME/tardis-refdata; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git fetch origin pull/3/head:carsus-ref; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git checkout carsus-ref; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs pull --include="atom_data/kurucz_cd23_chianti_H_He.h5" origin; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs pull --include="atom_data/chianti_He.h5" origin; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs pull --include="plasma_reference/" origin; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs pull --include="unit_test_data.h5" origin; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then cd $TRAVIS_BUILD_DIR; fi
- source ci-helpers/install_miniconda.sh

#- source ci-helpers/fetch_reference_data.sh

install:
- cd $TRAVIS_BUILD_DIR
- conda env create -f tardis_env27.yml
- source ci-helpers/install_tardis_env.sh
- source activate tardis
#trouble with building due to segfault at cython (https://github.com/cython/cython/issues/2199)
#remove if we can get normal cython through conda
- git clone https://github.com/cython/cython
- cd cython
- CFLAGS="$CFLAGS -D CYTHON_CLINE_IN_TRACEBACK=0" python setup.py install
- cd ..
- source ci-helpers/fetch_reference_data.sh

script:
- echo CC=$COMPILER python setup.py $SETUP_CMD
- CC=$COMPILER python setup.py $SETUP_CMD
- set -e
- python setup.py build_docs
- pip install doctr
- git lfs uninstall
- ls docs/_build/html/_images
- doctr deploy --built-docs docs/_build/html .


after_success:
- if [[ "$SAVE_COVERAGE" = true ]]; then coveralls; fi
- if [[ "$SAVE_COVERAGE" = true ]]; then codecov -t a876d307-9ed5-4f5d-a6c4-e58291ac4111; fi


after_failure:
- cat /home/travis/.pip/pip.log

stages:
- test
- integration

jobs:
include:
- stage: test
python: 2.7
env:
- COMPILER=gcc
- SETUP_CMD='test --coverage --args="--tardis-refdata=$REF_DATA_HOME"'
- TEST_MODE='spectrum'
- SAVE_COVERAGE=true
- stage: integration
if: type = cron
script:
- echo $COMPILER
- echo TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"creators": [{"orcid": "0000-0002-0479-7235", "affiliation": "European Southern Observatory", "name": "Kerzendorf, Wolfgang"}, {"name": "N\u00f6bauer, Ulrich"}, {"orcid": "0000-0002-9774-1192", "name": "Sim, Stuart"}, {"name": "Lietzau, Stefan"}, {"orcid": "0000-0002-6051-210X", "name": "Jan\u010dauskas, Vytautas"}, {"name": "Vogl, Christian"}, {"name": "Mishin, Mikhail"}, {"orcid": "0000-0003-4875-1623", "affiliation": "National Observatory of Athens", "name": "Tsamis, Fotis"}, {"name": "Boyle, Aoife"}, {"name": "Gupta, Vaibhav"}, {"name": "Desai, Karan"}, {"name": "Klauser, Michael"}, {"orcid": "0000-0001-9901-8785", "affiliation": "Ludwig-Maximilians-Universit\u00e4t M\u00fcnchen Fakult\u00e4t f\u00fcr Physik", "name": "Beaujean, Frederik"}, {"name": "Suban-Loewen, Adam"}, {"orcid": "0000-0002-1502-9127", "affiliation": "University of Toronto", "name": "Heringer, Epson"}, {"name": "Shingles, Luke"}, {"name": "Barna, Barnabas"}, {"name": "Gautam, Gaurav"}, {"name": "Patel, Maryam"}, {"name": "Barbosa, Talytha"}, {"name": "Varanasi, Kaushik"}, {"name": "Reinecke, Martin"}, {"name": "Bylund, Tomas"}, {"name": "Bentil, Laud"}, {"name": "Rajagopalan, Srinath"}, {"name": "Jain, Rinkle"}, {"name": "Singh, Sourav"}, {"name": "Talegaonkar, Chinmay"}, {"name": "Sofiatti, Caroline"}, {"name": "Patel, Pratik"}, {"name": "Yap, Kevin"}, {"name": "Wahi, Ujjwal"}, {"name": "Gupta, Suyash"}]}
{"creators": [{"orcid": "0000-0002-0479-7235", "affiliation": "European Southern Observatory", "name": "Kerzendorf, Wolfgang"}, {"orcid": "0000-0002-2453-853X", "affiliation": "Max-Planck-Institut f\u00fcr Astrophysik", "name": "N\u00f6bauer, Ulrich"}, {"orcid": "0000-0002-9774-1192", "name": "Sim, Stuart"}, {"name": "Lietzau, Stefan"}, {"orcid": "0000-0002-6051-210X", "name": "Jan\u010dauskas, Vytautas"}, {"name": "Vogl, Christian"}, {"name": "Mishin, Mikhail"}, {"orcid": "0000-0003-4875-1623", "affiliation": "National Observatory of Athens", "name": "Tsamis, Fotis"}, {"name": "Boyle, Aoife"}, {"name": "Gupta, Vaibhav"}, {"name": "Desai, Karan"}, {"name": "Klauser, Michael"}, {"orcid": "0000-0001-9901-8785", "affiliation": "Ludwig-Maximilians-Universit\u00e4t M\u00fcnchen Fakult\u00e4t f\u00fcr Physik", "name": "Beaujean, Frederik"}, {"name": "Suban-Loewen, Adam"}, {"orcid": "0000-0002-1502-9127", "affiliation": "University of Toronto", "name": "Heringer, Epson"}, {"name": "Shingles, Luke"}, {"name": "Barna, Barnabas"}, {"name": "Gautam, Gaurav"}, {"name": "Patel, Maryam"}, {"name": "Barbosa, Talytha"}, {"name": "Varanasi, Kaushik"}, {"name": "Reinecke, Martin"}, {"name": "Bylund, Tomas"}, {"name": "Bentil, Laud"}, {"name": "Rajagopalan, Srinath"}, {"name": "Jain, Rinkle"}, {"name": "Singh, Sourav"}, {"name": "Talegaonkar, Chinmay"}, {"name": "Sofiatti, Caroline"}, {"name": "Patel, Pratik"}, {"name": "Yap, Kevin"}, {"name": "Wahi, Ujjwal"}, {"name": "Gupta, Suyash"}]}
10 changes: 3 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@ TARDIS

TARDIS is a tool that creates synthetic observations (spectra) for exploding
stars (supernovae). Documentation can be found at
http://tardis.readthedocs.org.
https://tardis-sn.github.io/tardis/.

.. image:: https://img.shields.io/travis/tardis-sn/tardis/master.svg
:target: https://travis-ci.org/tardis-sn/tardis
.. image:: https://dev.azure.com/tardis-sn/TARDIS/_apis/build/status/tardis-sn.tardis?branchName=master
:target: https://dev.azure.com/tardis-sn/TARDIS/_build/latest?definitionId=1&branchName=master

.. image:: https://img.shields.io/coveralls/tardis-sn/tardis.svg
:target: https://coveralls.io/r/tardis-sn/tardis

.. image:: https://zenodo.org/badge/5756/tardis-sn/tardis.svg
:target: http://dx.doi.org/10.5281/zenodo.17630

.. image:: https://readthedocs.org/projects/tardis/badge/?version=latest
:target: http://tardis.readthedocs.org/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://badges.gitter.im/Join%20Chat.svg
:target: https://gitter.im/tardis-sn/tardis

Expand Down
Loading

0 comments on commit 221d72d

Please sign in to comment.