Skip to content

Commit

Permalink
Merge pull request #916 from spacetelescope/v1.1.0
Browse files Browse the repository at this point in the history
Release v1.1.0 [main]
  • Loading branch information
mfixstsci authored Apr 4, 2022
2 parents 4a9ff01 + 8ea6c9d commit 46e676e
Show file tree
Hide file tree
Showing 77 changed files with 1,697 additions and 786 deletions.
7 changes: 7 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Bandit configuration file for JWQL

# (optional) list included tests here:
tests: ['B102', 'B103', 'B104', 'B105', 'B106', 'B107', 'B108', 'B110', 'B112', 'B201', 'B501', 'B502', 'B503', 'B504', 'B505', 'B506', 'B507', 'B601', 'B603', 'B604', 'B605', 'B606', 'B607', 'B609', 'B610', 'B611', 'B701', 'B702', 'B703']

# (optional) list skipped tests here:
skips: ['B101', 'B307', 'B310', 'B404', 'B602', 'B608']
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
max-parallel: 5
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand All @@ -22,8 +22,11 @@ jobs:
activate-environment: jwql-${{ matrix.python-version }}

- name: Bandit Check
uses: jpetrucciani/[email protected]
continue-on-error: true
uses: jpetrucciani/bandit-check@master
with:
path: "./jwql/"
bandit_flags: "-c .bandit"
continue-on-error: false
if: runner.os == 'Linux'

- name: Build jwql conda environment and run tests
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.fits
*.ipynb_checkpoints/
config.json
.DS_Store
build/
dist/
jwql.egg-info/
Expand All @@ -12,3 +13,7 @@ docs/source/api/
htmlcov/
*.sqlite3
jwql/website/static/*.csv
jwql/website/apps/jwql/static/filesystem
jwql/website/apps/jwql/static/outputs
jwql/website/apps/jwql/static/preview_images
jwql/website/apps/jwql/static/thumbnails
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: rtd_requirements.txt
40 changes: 40 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
1.1.0 (2022-04-04)
===================

New Features
------------

Project & API Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Adding RTD Requirements file and yml
- Updated JDOX links so they don't produce 404 errors
- Updates to About page


Web Application
~~~~~~~~~~~~~~~

- Speed up Webapp loading
- Stripped code for creating mosaic preview images
- Ignoring unuseful pipeline products
- Updated feature desciption on EDB page
- Closed all open sessions to db explicitly
- Fix/Modify Integration Number slider
- Switch filesystem and astroquery.mast to point to OPS
- Updates to BANDIT CI
- Made plotting limits robust to missing data
- Removing reliance on jwst-dms-edb
- Updated MIRI Readout Patterns
- Updated "Filter By" Dropdown in Archive View
- Plot non-numerical mnemonic dataset


``jwql`` Repository
~~~~~~~~~~~~~~~~~~~

- Removed python 3.7 support
- Added python 3.9 environment
- Updated README to reflect changes in environment files.


1.0.0 (2021-10-05)
===================

Expand Down
41 changes: 19 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@


The JWST Quicklook Application (`JWQL`) is a database-driven web application and automation framework for use by the JWST instrument teams to monitor and trend the health, stability, and performance of the JWST instruments. The system is comprised of the following:
1. A network file system that stores all uncalibrated and calibrated data products on disk in a centrally-located area, accessible to instrument team members (MAST data cache)
1. A network file system that stores all uncalibrated and calibrated data products on disk in a centrally-located area, accessible to instrument team members (i.e. the MAST data cache)
2. A relational database that stores observational metadata allowing for data discovery via relational queries (MAST database API).
3. A software library that provides tools to support an automation framework in which to build automated instrument monitoring routines.
4. A web application that allows users to visually inspect new and archival JWST data as well as instrument-specific monitoring and performance results.

Official API documentation can be found on [ReadTheDocs](https://jwql.readthedocs.io)

The `jwql` application is currently under heavy development. The `1.0` release is expected in 2021. Currently, a development version of the web application can be found at [https://dljwql.stsci.edu](https://dljwql.stsci.edu).
The `jwql` application is available at [https://jwql.stsci.edu](https://jwql.stsci.edu). Please note that the application is currently restricted to specific JWST instrument team members.

## Installation for Users

Expand All @@ -44,7 +44,7 @@ Getting `jwql` up and running on your own computer requires four steps, detailed

### Prerequisites

It is highly suggested that contributors have a working installation of `anaconda` or `miniconda` for Python 3.7. Downloads and installation instructions are available here:
It is highly suggested that contributors have a working installation of `anaconda` or `miniconda` for Python 3.8. Downloads and installation instructions are available here:

- [Miniconda](https://conda.io/miniconda.html)
- [Anaconda](https://www.continuum.io/downloads)
Expand All @@ -69,7 +69,7 @@ instead, and then proceed as stated.

### Environment Installation

Following the download of the `jwql` repository, contributors can then install the `jwql` `conda` environment via the environment yaml file, which contains all of the dependencies for the project. First, ensure that your version of `conda` is up to date:
Following the download of the `jwql` repository, contributors can then install the `jwql` `conda` environment via the environment yaml file, which contains all of the dependencies for the project. First, if necessary, [install `conda`](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html). Next, ensure that your version of `conda` is up to date:

```
conda update conda
Expand All @@ -81,26 +81,19 @@ Next, activate the `base` or `root` environment (depending on your version of `c
source activate base/root
```

Lastly, create the `jwql` environment via the `environment_python_3_7.yml` file:
**Note:** If you have added a step activating conda to your default terminal/shell (e.g. the `.bashrc`, `.zshrc`, or `.profile` file) then you don't need to do the above step.

```
conda env create -f environment_python_3_7.yml --name jwql-3.7
```

### Package Installation

Next, you need to install the `jwql` package under development mode. This can be accomplished either by running the `setup.py` script, or `pip install` with the `-e` option:
Lastly, create the `jwql` environment via one of the `environment.yml` files (currently `environment_python_3_8.yml`, for python 3.8, and `environment_python_3.9.yml`, for python 3.9, are supported by `jwql`):

```
python setup.py develop
conda env create -f environment_python_3_8.yml
```

or

```
pip install -e .
conda env create -f environment_python_3.9.yml
```
The package should now appear if you run `conda list jwql`.

### Configuration File

Expand All @@ -112,7 +105,9 @@ Much of the `jwql` software depends on the existence of a `config.json` file wit
If you use `JWQL` for work/research presented in a publication (whether directly,
or as a dependency to another package), we recommend and encourage the following acknowledgment:

This research made use of the open source Python package JWQL (Bourque et al, 2020).
```
This research made use of the open source Python package 'jwql' (Bourque et al, 2020).
```

where (Bourque et al, 2020) is a citation of the Zenodo record available using the DOI badge above. By using the `Export` box in the lower right corner of the Zenodo page, you can export the citation in the format most convenient for you.

Expand All @@ -127,7 +122,7 @@ The following is a bare-bones example of a best work flow for contributing to th

1. Create a fork off of the `spacetelescope` `jwql` repository.
2. Make a local clone of your fork.
3. Ensure your personal fork is pointing `upstream` properly.
3. Ensure your personal fork is [pointing `upstream` properly](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork).
4. Create a branch on that personal fork.
5. Make your software changes.
6. Push that branch to your personal GitHub repository (i.e. `origin`).
Expand Down Expand Up @@ -155,19 +150,21 @@ Any questions about the `jwql` project or its software can be directed to `jwql@


## Current Development Team
- Matthew Bourque (INS) [@bourque](https://github.com/bourque)
- Bryan Hilbert (Project Manager, INS) [@bilhbert4](https://github.com/bhilbert4)
- Mees Fix (Technical Lead, INS) [@mfixstsci](https://github.com/mfixstsci)
- Misty Cracraft (INS) [@cracraft](https://github.com/cracraft)
- Mike Engesser (INS) [@mengesser](https://github.com/mengesser)
- Mees Fix (INS) [@mfixstsci](https://github.com/mfixstsci)
- Bryan Hilbert (INS) [@bilhbert4](https://github.com/bhilbert4)
- Graham Kanarek (INS) [@gkanarek](https://github.com/gkanarek)
- Teagan King (INS) [@tnking97](https://github.com/tnking97)
- Shannon Osborne (INS) [@shanosborne](https://github.com/shanosborne)
- Maria Pena-Guerrero [@penaguerrero](https://github.com/penaguerrero)
- Ben Sunnquist (INS) [@bsunnquist](https://github.com/bsunnquist)
- Brian York (INS) [@york-stsci](https://github.com/york-stsci)

## Past Development Team Members
- Matthew Bourque (INS) [@bourque](https://github.com/bourque)
- Lauren Chambers (INS) [@laurenmarietta](https://github.com/laurenmarietta)
- Joe Filippazzo (INS) [@hover2pi](https://github.com/hover2pi)
- Graham Kanarek (INS) [@gkanarek](https://github.com/gkanarek)
- Teagan King (INS) [@tnking97](https://github.com/tnking97)
- Sara Ogaz (DMD) [@SaOgaz](https://github.com/SaOgaz)
- Catherine Martlin (INS) [@catherine-martlin](https://github.com/catherine-martlin)
- Johannes Sahlmann (INS) [@Johannes-Sahlmann](https://github.com/johannes-sahlmann)
Expand Down
21 changes: 0 additions & 21 deletions docs/source/bokeh_templating.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ API documentation
:maxdepth: 1
:caption: Contents:

bokeh_templating.rst
common_monitors.rst
database.rst
edb.rst
Expand Down
24 changes: 12 additions & 12 deletions docs/source/jwql_monitors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
jwql_monitors
*************

monitor_cron_jobs.py
--------------------
.. automodule:: jwql.jwql_monitors.monitor_cron_jobs
:members:
:undoc-members:

monitor_filesystem.py
---------------------
.. automodule:: jwql.jwql_monitors.monitor_filesystem
:members:
:undoc-members:

generate_preview_images.py
--------------------------
.. automodule:: jwql.jwql_monitors.generate_preview_images
Expand All @@ -26,6 +14,18 @@ generate_proposal_thumbnails.py
:members:
:undoc-members:

monitor_cron_jobs.py
--------------------
.. automodule:: jwql.jwql_monitors.monitor_cron_jobs
:members:
:undoc-members:

monitor_filesystem.py
---------------------
.. automodule:: jwql.jwql_monitors.monitor_filesystem
:members:
:undoc-members:

monitor_mast.py
---------------
.. automodule:: jwql.jwql_monitors.monitor_mast
Expand Down
6 changes: 0 additions & 6 deletions docs/source/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ test_bias_monitor.py
:members:
:undoc-members:

test_bokeh_templating
---------------------
.. automodule:: jwql.tests.test_bokeh_templating
:members:
:undoc-members:

test_calculations.py
--------------------
.. automodule:: jwql.tests.test_calculations
Expand Down
12 changes: 6 additions & 6 deletions docs/source/website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ api_views.py
:members:
:undoc-members:

bokeh_dashboard.py
------------------
.. automodule:: jwql.website.apps.jwql.bokeh_dashboard
:members:
:undoc-members:

context_processors.py
---------------------
.. automodule:: jwql.website.apps.jwql.context_processors
Expand Down Expand Up @@ -44,12 +50,6 @@ monitor_views.py
:members:
:undoc-members:

oauth.py
--------
.. automodule:: jwql.website.apps.jwql.oauth
:members:
:undoc-members:

settings.py
-----------
.. automodule:: jwql.website.jwql_proj.settings
Expand Down
43 changes: 0 additions & 43 deletions environment_python_3_7.yml

This file was deleted.

Loading

0 comments on commit 46e676e

Please sign in to comment.