Skip to content

Commit

Permalink
Rearranging tests, adding opacity grid
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Mar 25, 2020
1 parent 9d00e3e commit e375802
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 83 deletions.
41 changes: 0 additions & 41 deletions .travis.yml
Expand Up @@ -55,15 +55,6 @@ matrix:

include:

# Try MacOS X, usually enough only to run from cron as hardly there are
# issues that are not picked up by a linux worker. We set language to
# 'c' since 'python' doesn't work on non-Linux platforms.
- os: osx
language: c
name: Python 3.7 with required dependencies
stage: Cron tests
env: PYTHON_VERSION=3.7 TOXENV=py37-test

# Do a regular build on Linux with Python 3.8, with cov
# For Linux we use language: python to avoid using conda.
- os: linux
Expand All @@ -79,20 +70,6 @@ matrix:
stage: Comprehensive tests
env: TOXENV=build_docs

# Now try Astropy dev with the latest Python
- os: linux
python: 3.8
name: Python 3.8 with developer version of astropy
stage: Comprehensive tests
env: TOXENV=py38-test-devdeps

# And with an older Python, Astropy LTS, and the oldest supported Numpy
- os: linux
python: 3.6
name: Python 3.6 astropy LTS and Numpy 1.16
stage: Comprehensive tests
env: TOXENV=py36-test-astropylts-numpy116

# Add a job that runs from cron only and tests against astropy dev and
# numpy dev to give a change for early discovery of issues and feedback
# for both developer teams.
Expand All @@ -102,24 +79,6 @@ matrix:
stage: Cron tests
env: TOXENV=py38-test-devdeps

# Try on Windows.
- os: windows
language: c
name: Python 3.8 with required dependencies
stage: Comprehensive tests
env: PYTHON_VERSION=3.8 TOXENV=py38-test

# Try other python versions and Numpy versions. Since we can assume that
# the Numpy developers have taken care of testing Numpy with different
# versions of Python, we can vary Python and Numpy versions at the same
# time.

- os: linux
python: 3.7
name: Python 3.7 with astropy 3.0 and Numpy 1.17
stage: Comprehensive tests
env: TOXENV=py37-test-astropy30-numpy117

# Do a code style check
- os: linux
python: 3.8
Expand Down
42 changes: 12 additions & 30 deletions README.rst
@@ -1,5 +1,13 @@
Example atmospheric retrieval package
-------------------------------------
retrieval
---------

.. image:: https://travis-ci.com/bmorris3/retrieval.svg?branch=master
:target: https://travis-ci.com/bmorris3/retrieval
:alt: Testing Status

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

.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
:target: http://www.astropy.org
Expand All @@ -9,7 +17,7 @@ Example atmospheric retrieval package
License
-------

This project is Copyright (c) Brett M. Morris, Chloe Fisher and licensed under
This project is Copyright (c) Brett M. Morris & Chloe Fisher and licensed under
the terms of the BSD 3-Clause license. This package is based upon
the `Astropy package template <https://github.com/astropy/package-template>`_
which is licensed under the BSD 3-clause licence. See the licenses folder for
Expand All @@ -20,30 +28,4 @@ Contributing
------------

We love contributions! retrieval is open source,
built on open source, and we'd love to have you hang out in our community.

**Imposter syndrome disclaimer**: We want your help. No, really.

There may be a little voice inside your head that is telling you that you're not
ready to be an open source contributor; that your skills aren't nearly good
enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one's coding skills. Writing perfect code
isn't the measure of a good developer (that would disqualify all of us!); it's
trying to create something, making mistakes, and learning from those
mistakes. That's how we all improve, and we are happy to help others learn.

Being an open source contributor doesn't just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you're coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.

Note: This disclaimer was originally written by
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a
`PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was adapted by
retrieval based on its use in the README file for the
`MetPy project <https://github.com/Unidata/MetPy>`_.
built on open source, and we'd love to have your help.
2 changes: 1 addition & 1 deletion retrieval/__init__.py
Expand Up @@ -6,4 +6,4 @@
from ._astropy_init import * # noqa
# ----------------------------------------------------------------------------

__all__ = []
from .core import * # noqa
File renamed without changes.
Binary file added retrieval/data/water_opacity_grid.npy
Binary file not shown.
5 changes: 0 additions & 5 deletions retrieval/extern/__init__.py

This file was deleted.

4 changes: 0 additions & 4 deletions retrieval/utils/__init__.py

This file was deleted.

5 changes: 3 additions & 2 deletions setup.cfg
Expand Up @@ -15,9 +15,10 @@ github_project = bmorris3/retrieval
zip_safe = False
packages = find:
python_requires = >=3.6
setup_requires = setuptools_scm
setup_requires =
setuptools_scm
astropy
install_requires =
numpy corner


[options.extras_require]
Expand Down

0 comments on commit e375802

Please sign in to comment.