Skip to content

Commit

Permalink
Merge pull request #157 from spacetelescope/0.8.1x
Browse files Browse the repository at this point in the history
0.8.1 release
  • Loading branch information
sosey committed Dec 14, 2018
2 parents 4689dc7 + 810ac29 commit fcd1946
Show file tree
Hide file tree
Showing 34 changed files with 1,973 additions and 1,383 deletions.
50 changes: 38 additions & 12 deletions .travis.yml
@@ -1,5 +1,11 @@
language: c

# Cache can be cleared from the travis settings menu, see docs currently at
# https://docs.travis-ci.com/user/caching#Clearing-Caches
cache:
- ccache


os:
- linux

Expand All @@ -16,7 +22,6 @@ addons:
- texlive-latex-extra
- dvipng


env:
global:
# SET DEFAULTS TO AVOID REPEATING IN MOST CASES
Expand All @@ -31,6 +36,23 @@ env:
- SETUP_XVFB=True
- EVENT_TYPE='push pull_request'

# PEP8 errors/warnings:
# E101 - mix of tabs and spaces
# W191 - use of tabs
# W291 - trailing whitespace
# W292 - no newline at end of file
# W293 - trailing whitespace
# W391 - blank line at end of file
# E111 - 4 spaces per indentation level
# E112 - 4 spaces per indentation level
# E113 - 4 spaces per indentation level
# E502 - the backslash is redundant between brackets
# E722 - do not use bare except
# E901 - SyntaxError or IndentationError
# E902 - IOError
- FLAKE8_OPT="--select=E101,W191,W291,W292,W293,W391,E111,E112,E113,E502,E722,E901,E902"


matrix:
# make sure that egg_info works without dependencies
- PYTHON_VERSION=2.7 SETUP_CMD='egg_info'
Expand Down Expand Up @@ -59,7 +81,6 @@ matrix:
SPHINX_VERSION=1.5.6
- python: 3.5
env: SETUP_CMD='build_sphinx -w' CONDA_DEPENDENCIES='Cython ipython scipy matplotlib ginga'
SPHINX_VERSION=1.5.6

# Try Astropy development and LTS versions
- python: 2.7
Expand All @@ -68,51 +89,55 @@ matrix:
env: ASTROPY_VERSION=lts
- python: 3.5
env: ASTROPY_VERSION=development
- python: 3.6
env: ASTROPY_VERSION=development

# Try with optional dependencies disabled
- python: 2.7
env: PIP_DEPENDENCIES=''
- python: 3.5
env: PIP_DEPENDENCIES=''
- python: 3.6
env: PIP_DEPENDENCIES=''


# Try older numpy versions
- python: 3.5
env: NUMPY_VERSION=1.11
- python: 3.5
env: NUMPY_VERSION=1.12
- python: 3.5
env: NUMPY_VERSION=1.13


# Try numpy pre-release
- python: 3.5
env: NUMPY_VERSION=prerelease
- python: 3.6
env: NUMPY_VERSION=prerelease

# Do a coverage test in Python 2.
- python: 2.7
# Do a coverage tests
- python: 3.5
env: SETUP_CMD='test --coverage'


# Do a pep8 test
- python: 3.5
env: SETUP_CMD='test --pep8 -k pep8
env: MAIN_CMD="flake8 imexam --count $FLAKE8_OPT" SETUP_CMD=''

allow_failures:
# The build with numpy pre-release halts in the middle without
# showing any obvious reason, thus allowing it to fail for now.
- python: 3.5
env: NUMPY_VERSION=prerelease
- python: 3.6
env: SETUP_CMD='build_sphinx -w' CONDA_DEPENDENCIES='Cython ipython scipy matplotlib ginga'
env: NUMPY_VERSION=prerelease


before_install:

# CONFIGURE A HEADLESS DISPLAY TO TEST PLOT GENERATION
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- uname -a
- python --version
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; sleep 3; echo ok )& fi

# We now use the ci-helpers package to set up our testing environment.
# This is done by using Miniconda and then using conda and pip to install
Expand Down Expand Up @@ -142,7 +167,8 @@ install:


script:
- $MAIN_CMD $SETUP_CMD
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ( xvfb-run -a $MAIN_CMD $SETUP_CMD ) fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( $MAIN_CMD $SETUP_CMD ) fi


after_success:
Expand Down
57 changes: 39 additions & 18 deletions CHANGES.rst
@@ -1,5 +1,26 @@
version 0.8.0 (released)
-----------------------------
version 0.8.1 (2018-12-14)
--------------------------
** THIS WILL BE THE LAST VERSION THAT SUPPORT Python 2.7 **

- travis and appveyor testing updates
- radial profile plot centering fixed to more correctly calculate the fractional center offsets
- cumulative radial profile flux calculation should now be correct
- the fit_gauss_1d function call was changed to accept the radius and flux array so that they
could be constructed correctly for multiple circumstances
- documentation updated and new simple walkthrough added
- MEF fits images with IMAGE arrays in the primary HDU should be detected correctly now
- now possible to give load_fits an in-memory fits object
- code cleanup and minor bug fixes
- background fit added to 1D and 2D Gaussian fits
- plotting AiryDisk2D fit is now possible
- unit test updates
- new options added to the aperture phot parameter set that allow users to plot the used apertures
- ZScaleInterval added from astropy.virtualization to set the color range on the data for aperture photometry plot
- replaced the sigma to fwhm lambda with the astropy constant for conversion
- added cursor move recognition using the arrow keys during the imexam loop, however, depending how the user has their windowing focus set, the DS9 window may loose focus, forcing them to move the cursor manually back to the window. Cursor moves are only implemented for DS9, not Ginga.

version 0.8.0 (2017-11-06)
--------------------------
- fixed show_xpa_commands bug sending None instead of empty string
to the xpa library
- fixed logic of connect method. When a target is given, do not look
Expand All @@ -8,14 +29,14 @@ version 0.8.0 (released)
- logic bug in ds9 class init updated to warn when user specified target doesn't exist


version 0.7.1 (released)
-----------------------------
version 0.7.1 (2017-02-06)
--------------------------
- fixed xpa bug holdout from updating for windows specific code
- changed default connection type from local to inet when XPA_METHOD not specified in users environment


version 0.7.0 (released)
-----------------------------
version 0.7.0 (2017-01-19)
--------------------------
- fixed a text error in the display_help() so that now the correct version loads the documentation
- Windows users can now install from source. The setup will ignore the cython and xpa necessary to build the DS9 interaction, and users will only be able to use the Ginga HTML5 window, they can also use the Imexamine() functions without any graphical interface.
- Documentation updates, mostly specific information for Windows users
Expand All @@ -37,8 +58,8 @@ version 0.6.4dev (unreleased)
- fixed bug in fits loader for ds9 multi-extension FITS files, made load_fits() prefer the extension specified in the key rather than the image name


version 0.6.3 (released)
------------------------
version 0.6.3 (2017-01-01)
--------------------------
- Logging was updated to fix bugs as well allow for more user control of the log files. Additionally, most prints were moved to the stdout stream handler so that users could also shut off messages to the screen
- The imexamine class was updated so that analysis functions could be more easily called by external entities. This was primarily to support ginga plugins, and a new imexam plugin for ginga.
- A dictionary is now returned to the user when they request information on the active DS9 windows which are available.
Expand All @@ -47,14 +68,14 @@ version 0.6.3 (released)
- Fixed bug with loading user specified fits extensions for both ginga and ds9


version 0.6.2 (released)
------------------------
version 0.6.2 (2016-08-10)
--------------------------
- Unbinned radial plots were added, bins are still an available option
- documentation updates


version 0.6dev (unreleased)
---------------------------
version 0.6.1 (2016-07-16)
--------------------------
- Ginga viewer support for images in matplotlib and QT backend removed, but replaced with HTML5 canvas viewer which is faster and simpler for users to both use and install.
- replaced custom fits with astropy.modeling, enabling Gaussian2d, Gaussian1d, Moffat1D and MexicanHat1D fits for lines and centering
- General bug fixes and documentation updates, including example jupyter notebooks
Expand All @@ -74,18 +95,18 @@ version 0.5.3dev (unreleased)
- added a radial profile plot under the r key, the curve of growth plot was moved to g


version 0.5.2 (released)
------------------------
version 0.5.2 (2016-01-29)
--------------------------
- windows build change


version 0.5.1 (released)
-----------------------
version 0.5.1 (2016-01-29)
--------------------------
- version upgraded needed for the release on pypi so it would accept the upload


version 0.5 (released)
----------------------
version 0.5 (2015-05-01)
------------------------

- Ginga viewer with matplotlib backend fully flushed out,
this uses an event driven examination which is activated by key-press
Expand Down
24 changes: 24 additions & 0 deletions CODE_OF_CONDUCT.md
@@ -0,0 +1,24 @@
# Spacetelescope Open Source Code of Conduct

We expect all "spacetelescope" organization projects to adopt a code of conduct that ensures a productive, respectful environment for all open source contributors and participants. We are committed to providing a strong and enforced code of conduct and expect everyone in our community to follow these guidelines when interacting with others in all forums. Our goal is to keep ours a positive, inclusive, successful, and growing community. The community of participants in open source Astronomy projects is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences success and continued growth.


As members of the community,

- We pledge to treat all people with respect and provide a harassment- and bullying-free environment, regardless of sex, sexual orientation and/or gender identity, disability, physical appearance, body size, race, nationality, ethnicity, and religion. In particular, sexual language and imagery, sexist, racist, or otherwise exclusionary jokes are not appropriate.

- We pledge to respect the work of others by recognizing acknowledgment/citation requests of original authors. As authors, we pledge to be explicit about how we want our own work to be cited or acknowledged.

- We pledge to welcome those interested in joining the community, and realize that including people with a variety of opinions and backgrounds will only serve to enrich our community. In particular, discussions relating to pros/cons of various technologies, programming languages, and so on are welcome, but these should be done with respect, taking proactive measure to ensure that all participants are heard and feel confident that they can freely express their opinions.

- We pledge to welcome questions and answer them respectfully, paying particular attention to those new to the community. We pledge to provide respectful criticisms and feedback in forums, especially in discussion threads resulting from code contributions.

- We pledge to be conscientious of the perceptions of the wider community and to respond to criticism respectfully. We will strive to model behaviors that encourage productive debate and disagreement, both within our community and where we are criticized. We will treat those outside our community with the same respect as people within our community.

- We pledge to help the entire community follow the code of conduct, and to not remain silent when we see violations of the code of conduct. We will take action when members of our community violate this code such as such as contacting conduct@stsci.edu (all emails sent to this address will be treated with the strictest confidence) or talking privately with the person.

This code of conduct applies to all community situations online and offline, including mailing lists, forums, social media, conferences, meetings, associated social events, and one-to-one interactions.

Parts of this code of conduct have been adapted from the Astropy and Numfocus codes of conduct.
http://www.astropy.org/code_of_conduct.html
https://www.numfocus.org/about/code-of-conduct/

0 comments on commit fcd1946

Please sign in to comment.