Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] test-deployment #1392

Merged
merged 2,073 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2073 commits
Select commit Hold shift + click to select a range
ed8c413
Merge branch 'develop' into models_for_query
BradleySappington Apr 17, 2023
a7c71b5
Merge pull request #1216 from bhilbert4/filesystem-monitor-database-fix
mfixstsci Apr 17, 2023
99924c4
move build configuration from `setup.py` to `pyproject.toml`
zacharyburnett Apr 17, 2023
fcc01bc
replace references to setup.py
zacharyburnett Apr 17, 2023
5a2d5c0
read `pyproject.toml` file
zacharyburnett Apr 17, 2023
2e0a503
use `setuptools_scm` to retrieve version number from Git tag
zacharyburnett Apr 17, 2023
04b17c4
add README to metadata
zacharyburnett Apr 17, 2023
299d255
move optional dependencies into `optional-dependencies`
zacharyburnett Apr 17, 2023
54ebc8d
drop support for Python 3.8
zacharyburnett Apr 17, 2023
f26a122
run all jobs to completion
zacharyburnett Apr 18, 2023
ca455d2
remove 3.10
zacharyburnett Apr 18, 2023
7f39ed0
use micromamba to build environment and split job
zacharyburnett Apr 17, 2023
08dbba8
cache environment
zacharyburnett Apr 17, 2023
a3ad305
set job name
zacharyburnett Apr 17, 2023
350a575
do not fail fast on error
zacharyburnett Apr 18, 2023
df44115
Merge pull request #1249 from zacharyburnett/drop_py38
mfixstsci Apr 18, 2023
2686869
Merge branch 'develop' into ci
zacharyburnett Apr 18, 2023
2b668b3
Merge branch 'develop' into pep621
mfixstsci Apr 18, 2023
e320a3e
drop explicit environment name
zacharyburnett Apr 18, 2023
48f3af8
also use pytest configuration
zacharyburnett Apr 18, 2023
dee2b32
fix import indentation
zacharyburnett Apr 18, 2023
81e782e
restore dependency for egg build
zacharyburnett Apr 18, 2023
13706f3
Merge pull request #1248 from zacharyburnett/ci
mfixstsci Apr 18, 2023
43ec164
Merge branch 'develop' into pep621
zacharyburnett Apr 18, 2023
7df644e
use latest Python instead of system
zacharyburnett Apr 18, 2023
258b9a8
use test extra
zacharyburnett Apr 18, 2023
a68e805
Merge pull request #1250 from zacharyburnett/pep621
mfixstsci Apr 18, 2023
2236cd6
fix database typo
bhilbert4 Apr 18, 2023
7317485
Merge branch 'develop' into dark-monitor-db-typo
bhilbert4 Apr 18, 2023
fafd4fd
Merge pull request #1255 from bhilbert4/dark-monitor-db-typo
mfixstsci Apr 19, 2023
17037b0
Remove bokeh templating files for mast monitor
bhilbert4 Apr 19, 2023
253cf11
Remove bokeh templating yaml for filesystem monitor
bhilbert4 Apr 19, 2023
120f812
Renaming env files and updating ci
mfixstsci Apr 20, 2023
8db43d1
Merge pull request #1257 from mfixstsci/change-environment-names
mfixstsci Apr 20, 2023
feb96dd
Merge branch 'develop' into models_for_query
mfixstsci Apr 21, 2023
99e0ca7
Merge pull request #1240 from BradleySappington/models_for_query
mfixstsci Apr 25, 2023
ea9846e
Fix path to pyproject.toml
bhilbert4 Apr 25, 2023
147369e
Merge pull request #1258 from bhilbert4/find-pyproject-toml
BradleySappington Apr 26, 2023
f3c8836
correct logging statement
bhilbert4 May 8, 2023
90d79e3
update run_save_jump
bhilbert4 May 8, 2023
00e9058
Turn off steps when input is dark.fits
bhilbert4 May 8, 2023
858b06e
Update run_pipe to optionally skip steps
bhilbert4 May 8, 2023
e7527f7
Fix logic for skipping completed steps
bhilbert4 May 9, 2023
712894b
Add missing steps to step list
bhilbert4 May 9, 2023
3cd5cd6
rateints support
bhilbert4 May 9, 2023
43facbe
added quick instructions for NRS TA monitors
penaguerrero May 11, 2023
9487781
Merge branch 'develop' into shared-tasks-logging
bhilbert4 May 15, 2023
fb2bb90
trivial commit
bhilbert4 May 15, 2023
dc97986
Move monitor_mast functions into mast_utils. Update tests.
bhilbert4 May 15, 2023
9836cc7
Replace mentions of monitor_mast with mast_utils
bhilbert4 May 15, 2023
4d575dd
Remove UNUSED monitor_mast imports
bhilbert4 May 15, 2023
38fa8be
Merge branch 'develop' into remove-mast-monitor
bhilbert4 May 15, 2023
f9a5a91
Update documentation
bhilbert4 May 15, 2023
1b33f0b
Remove db.py from doc list
bhilbert4 May 15, 2023
c03d1ee
Add phinx_rtd_theme to rtd_requirements
bhilbert4 May 15, 2023
653f10d
Remove mast_monitor.py
bhilbert4 May 15, 2023
c3fec3a
Fix import in CR monitor
bhilbert4 May 15, 2023
3d5f117
Merge pull request #1256 from bhilbert4/remove-mast-monitor
mfixstsci May 18, 2023
3e3af74
update step_args in shared_tasks scripts, to be able to skip pipe steps
bhilbert4 May 22, 2023
458c789
Propogate user-input pipeline keywords.
bhilbert4 May 22, 2023
7a1e185
Updating conda requirements
mfixstsci May 22, 2023
38cea5b
Updating pip requirements
mfixstsci May 23, 2023
1a289b0
Adding ruff and removing flake8
mfixstsci May 23, 2023
2acaded
Make step_args optional in run_pipeline.py
bhilbert4 May 23, 2023
8b3ac9e
Fix pipeline step test
bhilbert4 May 23, 2023
ac4dde8
Clean up
bhilbert4 May 23, 2023
6f54db1
Merge branch 'develop' into pipeline-skip-run-steps
bhilbert4 May 23, 2023
756592f
updating pyproject.toml
mfixstsci May 23, 2023
b35f640
Fix code duplication
melanieclarke May 23, 2023
798691c
Fix for test with new versioning system
melanieclarke May 25, 2023
3caac1a
Decouple TA monitor run from page load
melanieclarke May 25, 2023
8da7365
Replace MAST query with Django model query.
melanieclarke May 25, 2023
6e61278
Use DATE-BEG instead of DATE-OBS for time information
melanieclarke May 26, 2023
55e6967
Add execute permission for ta monitor scripts
melanieclarke May 26, 2023
bb89aab
Improve tooltip readability
melanieclarke May 26, 2023
d031190
Merge branch 'develop' into nrstainstructions
melanieclarke May 26, 2023
ece94d9
Merge pull request #1264 from penaguerrero/nrstainstructions
mfixstsci May 26, 2023
be592fa
Merge branch 'develop' into nrs_ta_monitors
melanieclarke May 26, 2023
4fe907f
Reformat TA monitor instructions
melanieclarke May 26, 2023
b72cd1c
Add test for alternate query method
melanieclarke May 30, 2023
65c4caa
Update README.md
BradleySappington May 31, 2023
78708ad
Updating requirements and conda files to match
mfixstsci May 31, 2023
85087f9
Upgrading redis versions
mfixstsci May 31, 2023
e7c8de0
Merge branch 'develop' into may-june-dependancy-updates
mfixstsci May 31, 2023
9001e31
Merge pull request #1267 from mfixstsci/may-june-dependancy-updates
mfixstsci May 31, 2023
e5a23cd
Initial Commit
BradleySappington May 31, 2023
d83f722
default search_path until params
BradleySappington May 31, 2023
ad2bc70
add (p)ath argument
BradleySappington May 31, 2023
43d1836
make PID_LOCKFILE_KEY constant for modules
BradleySappington May 31, 2023
8620e6a
Update Messages
BradleySappington May 31, 2023
ff1057d
fix lint error
BradleySappington May 31, 2023
e3081da
Merge branch 'develop' into nrs_ta_monitors
melanieclarke May 31, 2023
4c6c645
Add testing email
BradleySappington May 31, 2023
3a96d98
put cleaning code in protect_module.py
BradleySappington Jun 1, 2023
5ad7fd9
update email and remove old solution
BradleySappington Jun 1, 2023
8585253
Merge branch 'develop' into clean_locks
BradleySappington Jun 1, 2023
7e9f457
Update test_protect_module.py for updates
BradleySappington Jun 2, 2023
bdb11f3
Merge branch 'clean_locks' of github.com:BradleySappington/jwql into …
BradleySappington Jun 2, 2023
602f1c5
Add shared selection tools and a date range filter
melanieclarke Jun 2, 2023
97bb967
Add possible exception for group permissions
melanieclarke Jun 2, 2023
a5bd152
Merge pull request #1273 from melanieclarke/nrs_ta_monitors
mfixstsci Jun 2, 2023
9bed53f
Dont email during test
BradleySappington Jun 2, 2023
f8748ae
Merge develop into nrs_ta_monitors
melanieclarke Jun 2, 2023
e405e4c
Merge branch 'develop' into clean_locks
BradleySappington Jun 5, 2023
89b378d
Fix issue confusing filenames on monitor re-run
melanieclarke Jun 5, 2023
b311879
Clean up style and spelling
melanieclarke Jun 5, 2023
853ee7c
Merge pull request #1276 from BradleySappington/clean_locks
mfixstsci Jun 5, 2023
dcb20b2
Merge branch 'develop' into nrs_ta_monitors
melanieclarke Jun 5, 2023
2ba25de
Adding proposal category and look status to query page
melanieclarke Jun 5, 2023
e630c0e
Add pagination for query results
melanieclarke Jun 5, 2023
b3956ab
Add results per page configuration to query
melanieclarke Jun 6, 2023
c65fc63
Link query sort preference to session sort preference
melanieclarke Jun 6, 2023
4dae5a7
Tidy pagination style
melanieclarke Jun 6, 2023
e165c1c
Add summary text for top-level query params
melanieclarke Jun 6, 2023
f181f0a
Fix for bad test PID
melanieclarke Jun 6, 2023
cd0c93a
Fix argument to update_sort_options
melanieclarke Jun 6, 2023
a9229ca
Add all parameters to query summary
melanieclarke Jun 7, 2023
b2e0d80
Fix aspect ratio, default to linear zscale
melanieclarke Jun 7, 2023
b2819f9
Merge pull request #1281 from melanieclarke/improve_query_page
BradleySappington Jun 8, 2023
90b04d5
Move scaling and limit controls to client side
melanieclarke Jun 8, 2023
6815685
Fix accidental commit for TA monitors
melanieclarke Jun 8, 2023
003a486
Merge branch 'develop' into improve_explore_image
melanieclarke Jun 8, 2023
7efae1e
Add row and column plots
melanieclarke Jun 9, 2023
9938a54
Readability improvements
melanieclarke Jun 12, 2023
6e370d4
Move hover tool to separate div
melanieclarke Jun 13, 2023
4445dde
Add RA/Dec to hover tool if available
melanieclarke Jun 13, 2023
fd8f125
Autoscale plots to windowed data instead of zoom tools
melanieclarke Jun 13, 2023
7b34d60
Fix timing and NaN issues with plot limit setting
melanieclarke Jun 14, 2023
15b2ed3
Merge branch 'develop' into nrs_ta_monitors
mfixstsci Jun 21, 2023
45fb184
Merge pull request #1280 from melanieclarke/nrs_ta_monitors
mfixstsci Jun 21, 2023
82d0360
Add download links to image pages
melanieclarke Jun 23, 2023
61b9a0a
Merge branch 'develop' into improve_explore_image
melanieclarke Jun 23, 2023
2afb9f2
Merge pull request #1283 from melanieclarke/download_link
mfixstsci Jun 23, 2023
718fdff
Merge branch 'develop' into improve_explore_image
melanieclarke Jun 23, 2023
1537278
Tweaks from testing on server
bhilbert4 Jul 3, 2023
5dba6d0
Add help message for column/row plots
melanieclarke Jul 7, 2023
75b2edb
Update docstring
melanieclarke Jul 7, 2023
f8b84a3
Fix hover tool for DQ image
melanieclarke Jul 7, 2023
51bcd01
Fix hover tool for uncal images
melanieclarke Jul 7, 2023
eb45ae1
Handle single-valued DQ pixels
melanieclarke Jul 7, 2023
6c98cb3
Merge pull request #1282 from melanieclarke/improve_explore_image
mfixstsci Jul 10, 2023
13dcb14
prepare models for external postgres db
BradleySappington Jul 12, 2023
06458e6
db keys must be all caps
BradleySappington Jul 12, 2023
9f97ca9
update tab_service search for all intents
BradleySappington Jul 13, 2023
a7b89fb
Merge pull request #1290 from BradleySappington/intents_bugfix
mfixstsci Jul 14, 2023
1b241f5
Merge branch 'develop' into db_transfer
BradleySappington Jul 17, 2023
a0e0a62
Merge branch 'develop' into shared-tasks-logging
mfixstsci Jul 20, 2023
7401ac9
Merge pull request #1261 from bhilbert4/shared-tasks-logging
mfixstsci Jul 20, 2023
2be4c1f
Merge branch 'spacetelescope:develop' into db_transfer
BradleySappington Jul 21, 2023
4d858e7
Merge pull request #1287 from BradleySappington/db_transfer
mfixstsci Jul 25, 2023
02a6b63
rateints case working
bhilbert4 Jul 25, 2023
9f5f05d
Uncomment the get() lines
bhilbert4 Jul 25, 2023
1160e5d
Merge branch 'develop' into pipeline-skip-run-steps
bhilbert4 Jul 25, 2023
21e0d3e
Remove bad cut and paste text
bhilbert4 Jul 25, 2023
6330d2b
Return dark monitor to specifying rate outputs. rateints will be anot…
bhilbert4 Jul 25, 2023
95de7d9
Update README.md
BradleySappington Jul 25, 2023
568e314
Merge pull request #1294 from spacetelescope/BradleySappington-patch-1
mfixstsci Jul 26, 2023
4adc585
use json loads rather than custom function. resp to review comments
bhilbert4 Jul 27, 2023
5fdcec1
Returning to custom function for dictioanry to string conversion
bhilbert4 Jul 28, 2023
7b1fe98
Return jump threshold statement.
bhilbert4 Jul 28, 2023
dd13625
update anomaly search backend
BradleySappington Jul 28, 2023
9196d96
Merge branch 'develop' into pipeline-skip-run-steps
bhilbert4 Jul 31, 2023
65fb43e
Merge pull request #1262 from bhilbert4/pipeline-skip-run-steps
mfixstsci Jul 31, 2023
7f43345
exploring
bhilbert4 Aug 1, 2023
2673b3c
Smarter about base filename
bhilbert4 Aug 1, 2023
99bcb7a
Remove unused badpix values from columndatasource
bhilbert4 Aug 2, 2023
9f45a40
Set first pipeline step name per instrument
bhilbert4 Aug 2, 2023
0b4791b
avoid logging large numpy arrays
bhilbert4 Aug 2, 2023
8737521
Make plotting functions robust against missing db entries
bhilbert4 Aug 2, 2023
8dd5bbd
Make other plotting functions robust against missing db entries
bhilbert4 Aug 2, 2023
40bd0da
typo
bhilbert4 Aug 2, 2023
d5a6dbe
Merge pull request #1297 from bhilbert4/bias-monitor-shared-tasks-fix
mfixstsci Aug 3, 2023
45c1f8f
Check fidelity of file copy from mast
bhilbert4 Aug 4, 2023
c4d983e
Merge branch 'develop' into query_enhance
BradleySappington Aug 8, 2023
dc7e272
env updates with correct nodejs
bhilbert4 Aug 17, 2023
bc3b546
Return env name back to nominal
bhilbert4 Aug 17, 2023
db943ed
Merge pull request #1295 from BradleySappington/query_enhance
mfixstsci Aug 18, 2023
a6beb94
bring nodejs up to most recent version
bhilbert4 Aug 18, 2023
6228dae
Merge branch 'develop' into dep-updates-aug23
bhilbert4 Aug 18, 2023
1f6d8eb
Merge pull request #1307 from bhilbert4/dep-updates-aug23
mfixstsci Aug 29, 2023
e9f55f9
Merge branch 'develop' into dark-monitor-shared-tasks-bugfix
bhilbert4 Sep 5, 2023
d85da1c
Merge pull request #1301 from bhilbert4/dark-monitor-shared-tasks-bugfix
mfixstsci Sep 5, 2023
0d70542
Merge branch 'develop' into remove-readnoise-bokeh
mfixstsci Sep 11, 2023
fd7c838
Adding more logging
york-stsci Sep 11, 2023
1834232
Add step_args to calwebb_detector1_save_jump
bhilbert4 Sep 13, 2023
477072f
create wrapper func for saving png files
bhilbert4 Sep 21, 2023
03da9a8
Quit driver when done. Add test
bhilbert4 Sep 21, 2023
f239ef2
RTD needs selenium now
bhilbert4 Sep 21, 2023
23d02e7
Fix test. Adjust rtd version
bhilbert4 Sep 21, 2023
b85a1b0
Bump cryptography from 41.0.3 to 41.0.4
dependabot[bot] Sep 21, 2023
2f0e825
Better logging. Fix param def. Allow empty dark file list
bhilbert4 Sep 22, 2023
7ce0d9c
Fix typo in env file names in readme
bhilbert4 Sep 25, 2023
0846126
Merge pull request #1363 from bhilbert4/readme-env-name-typo
bhilbert4 Sep 25, 2023
55b12f3
pep8 fixes
bhilbert4 Sep 25, 2023
ebf05a9
Include migrations in source control
BradleySappington Sep 28, 2023
6f1e72f
Merge pull request #1364 from BradleySappington/add_migrations
BradleySappington Sep 28, 2023
a22b9cc
pep8 fixes
bhilbert4 Sep 28, 2023
7c2cd66
more pep8
bhilbert4 Sep 28, 2023
6fc7ad3
pep8, make up your mind
bhilbert4 Sep 28, 2023
9894eb4
Merge branch 'develop' into dependabot/pip/cryptography-41.0.4
BradleySappington Sep 29, 2023
46e343a
Merge pull request #1361 from spacetelescope/dependabot/pip/cryptogra…
BradleySappington Sep 29, 2023
d0bb4fe
Merge branch 'develop' into png-fix-for-selenium-version
bhilbert4 Sep 29, 2023
6b057ff
Merge pull request #1360 from bhilbert4/png-fix-for-selenium-version
mfixstsci Oct 2, 2023
f81de38
Bump scipy from 1.9.3 to 1.10.0
dependabot[bot] Oct 2, 2023
58af3a7
Merge pull request #1369 from spacetelescope/dependabot/pip/scipy-1.10.0
BradleySappington Oct 2, 2023
1e6073e
Removed all templating, adding new calls to monitor views to display …
mfixstsci Oct 2, 2023
d455bb5
Merge branch 'develop' into remove-readnoise-bokeh
mfixstsci Oct 2, 2023
d4db609
Remove import from __init__ and updating typos for plotting, updating…
mfixstsci Oct 2, 2023
8c2fd61
update deps in environment files
BradleySappington Oct 3, 2023
c0de011
update versions in requirements.txt
BradleySappington Oct 3, 2023
8ae4da4
put redis back to 5.0.0
BradleySappington Oct 3, 2023
9ef1cd9
whoops, accidental logging change
BradleySappington Oct 3, 2023
b4e4c38
revert all redis references to 5.0.0
BradleySappington Oct 6, 2023
b874639
mamba didn't like 3.10.13
BradleySappington Oct 6, 2023
6edf126
update for 3.10.12
BradleySappington Oct 6, 2023
91feef4
update rtd_requirements.txt
BradleySappington Oct 6, 2023
059310a
jwst changed out from under me
BradleySappington Oct 6, 2023
fdfd4b6
update setuptools version
BradleySappington Oct 6, 2023
f365329
setuptools greater than
BradleySappington Oct 6, 2023
f7ecd69
no thank you sphinx_theme. stsci_theme 4ever
BradleySappington Oct 6, 2023
b09eff7
Merge pull request #1370 from BradleySappington/update_deps
BradleySappington Oct 9, 2023
385ec3d
Adding string slicing for path to readnoise diff image
mfixstsci Oct 13, 2023
6cdb3f7
pep8speaks
mfixstsci Oct 13, 2023
d918401
Merge branch 'develop' into remove-readnoise-bokeh
mfixstsci Oct 13, 2023
481aa25
Merge branch 'develop' into badpix-monitor-step-args
mfixstsci Oct 19, 2023
848a0aa
Merge pull request #1358 from bhilbert4/badpix-monitor-step-args
mfixstsci Oct 19, 2023
c588e38
Merge branch 'develop' into issue-1354
mfixstsci Oct 19, 2023
9e6c419
Merge pull request #1355 from york-stsci/issue-1354
mfixstsci Oct 19, 2023
e6e43be
Pep8 fixes
mfixstsci Oct 19, 2023
33c8ddb
Addressing Bryans comments
mfixstsci Oct 20, 2023
89b6863
Merge remote-tracking branch 'origin/remove-readnoise-bokeh' into rem…
mfixstsci Oct 20, 2023
7e0836b
Merge branch 'develop' into remove-readnoise-bokeh
mfixstsci Oct 20, 2023
46d2548
Merge pull request #1238 from mfixstsci/remove-readnoise-bokeh
mfixstsci Oct 20, 2023
f73a012
Merge branch 'develop' into add-dependabot-file
mfixstsci Oct 23, 2023
7d3ead4
Merge pull request #1195 from mfixstsci/add-dependabot-file
mfixstsci Oct 23, 2023
7206e33
update actions/checkout to v4
BradleySappington Oct 24, 2023
03aece8
Merge pull request #1390 from BradleySappington/actions_version
mfixstsci Oct 24, 2023
f927012
implementing date range in query page
BradleySappington Nov 7, 2023
3ee4483
fix some linting errors
BradleySappington Nov 7, 2023
5be0a6c
remove old date_range page
BradleySappington Nov 8, 2023
cac9cd2
pesky pep8 fixes
BradleySappington Nov 8, 2023
ea4ae52
more pep8
BradleySappington Nov 8, 2023
445b84b
fix anti-pattern
BradleySappington Nov 8, 2023
bafa6c2
put DateRange above GENERAL options row
BradleySappington Nov 8, 2023
6907259
update filters key value pair in params for get proposals by category
mfixstsci Nov 13, 2023
c5b286e
Updating filters key in params for test_astroquery_mast
mfixstsci Nov 13, 2023
c917860
Merge pull request #1398 from mfixstsci/astroquery-bug-fix-2023-11-13
BradleySappington Nov 13, 2023
f7dbc13
Merge pull request #1399 from spacetelescope/test
BradleySappington Nov 13, 2023
092a544
Merge branch 'develop' into date_query
BradleySappington Nov 13, 2023
cf2c16a
Merge pull request #1396 from BradleySappington/date_query
BradleySappington Nov 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
87 changes: 34 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,53 @@ name: JWQL CI

on: [push, pull_request]

jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

JWQL-CI:
defaults:
run:
shell: bash -l {0}

name: Python - ${{ matrix.python-version }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install bandit
- run: bandit ./jwql/ -c .bandit

test:
name: test (Python ${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 5
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9]
python-version: [3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
- uses: mamba-org/provision-with-micromamba@v15
with:
activate-environment: jwql-${{ matrix.python-version }}
environment-file: ./environment_python_${{ matrix.python-version }}.yml
cache-env: true
cache-downloads: true

- name: Bandit Check
uses: jpetrucciani/bandit-check@master
with:
path: "./jwql/"
bandit_flags: "-c .bandit"
continue-on-error: false
if: runner.os == 'Linux'
- run: pip install -e .[test]

- name: Build jwql conda environment and run tests
shell: bash -l {0}
run: |
- run: conda env export

echo "Setting useful environment variables:"
echo " "
export PYTHONVERSION=${{ matrix.python-version }}
export MAJOR="$(echo $PYTHONVERSION | head -c 1)"
export MINOR="$(echo $PYTHONVERSION | tail -c 2)"
echo "PYTHONVERSION: $PYTHONVERSION"

echo " "
echo "Installing jwql conda environment"
echo " "
cd $RUNNER_WORKSPACE/
cd jwql/
$CONDA/bin/conda env update -f environment_python_${MAJOR}_${MINOR}.yml -n jwql-${{ matrix.python-version }}

echo " "
echo "Installing jwql package"
echo " "
python setup.py develop

echo " "
echo "Testing package installation"
echo " "
python -c "import jwql; print('Version: ' + jwql.__version__); print('Path: ' + jwql.__path__[0])"

# echo " "
# echo "Reinstall numpy to fix numpy.core.multiarray error"
# echo " "
pip install -U numpy
- uses: supercharge/[email protected]
with:
redis-version: 5.0
if: runner.os == 'Linux'

echo " "
echo "The conda environment being used:"
echo " "
$CONDA/bin/conda env export
- run: python -c "import jwql; print('Version ' + jwql.__version__); print('Path ' + jwql.__path__[0])"

echo " "
echo "Running pytests"
echo " "
pytest jwql/tests/
- run: pytest jwql/tests/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*.ipynb_checkpoints/
config.json
.DS_Store
.idea
.coverage*
build/
dist/
jwql.egg-info/
Expand Down
16 changes: 14 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,29 @@
# Required
version: 2
# Set the version of Python and other tools you might need
# Explicit sqlalchemy install using post_install in order to get around the RTD
# command pip install --upgrade --upgrade-strategy eager
# This command upgrades all packages listed in rtd_reuirements.txt. This was causing
# a problem when upgrading to sqlalchemy >=2.0, which has large changes from versions
# <2.0, and was causing jwql to crash.
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
post_install:
- pip install sqlalchemy==1.4.46

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
fail_on_warning: false
# 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
- requirements: rtd_requirements.txt
- method: pip
path: .
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
Unreleased
==========

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

- Dark and Bad Pixel Monitors delete unnecessary outputs to save disk space (#933)


1.1.1 (2022-04-05)
==================

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include LICENSE
include CHANGES.rst
include environment_python_3_7.yml
include environment_python_3_8.yml
include setup.py
include pyproject.toml
include requirements.txt
include rtd_requirements.txt
include jwql/example_config.json
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ 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.8. Downloads and installation instructions are available here:
It is highly suggested that contributors have a working installation of `anaconda` or `miniconda` for Python 3.9+. Downloads and installation instructions are available here:

- [Miniconda](https://conda.io/miniconda.html)
- [Anaconda](https://www.continuum.io/downloads)

Requirements for contributing to the `jwql` package will be included in the `jwql` `conda` environment, which is included in our installation instructions below. Further package requirements will be provided for `jwql` by a `setup.py` script included in the repository.
Requirements for contributing to the `jwql` package will be included in the `jwql` `conda` environment, which is included in our installation instructions below. Further package requirements will be provided for `jwql` by a `pyproject.toml` file included in the repository.

### Clone the `jwql` repo

Expand Down Expand Up @@ -83,16 +83,16 @@ source activate base/root

**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.

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`):
Lastly, create the `jwql` environment via one of the `environment.yml` files (currently `environment_python_3.9.yml`, for python 3.9, and `environment_python_3.10.yml`, for python 3.10, are supported by `jwql`):

```
conda env create -f environment_python_3_8.yml
conda env create -f environment_python_3.9.yml
```

or

```
conda env create -f environment_python_3.9.yml
conda env create -f environment_python_3.10.yml
```

### Configuration File
Expand Down Expand Up @@ -154,10 +154,11 @@ Any questions about the `jwql` project or its software can be directed to `jwql@
- 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)
- 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)
- Bradley Sappington (INS) [@bradleysappington](https://github.com/bradleysappington)
- Melanie Clarke (INS) [@melanieclarke](https://github.com/melanieclarke)

## Past Development Team Members
- Matthew Bourque (INS) [@bourque](https://github.com/bourque)
Expand All @@ -168,7 +169,7 @@ Any questions about the `jwql` project or its software can be directed to `jwql@
- 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)

- Shannon Osborne (INS) [@shanosborne](https://github.com/shanosborne)

## Acknowledgments:
- Faith Abney (DMD)
Expand Down
6 changes: 6 additions & 0 deletions docs/source/common_monitors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ dark_monitor.py
:members:
:undoc-members:

edb_telemetry_monitor.py
------------------------
.. automodule:: jwql.instrument_monitors.common_monitors.edb_telemetry_monitor
:members:
:undoc-members:

readnoise_monitor.py
--------------------
.. automodule:: jwql.instrument_monitors.common_monitors.readnoise_monitor
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# This is a fix for warnings because of sphinx-autodoc interaction for classes,
# however it removes method table from the docs.
Expand Down
6 changes: 0 additions & 6 deletions docs/source/jwql_monitors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,3 @@ monitor_filesystem.py
.. automodule:: jwql.jwql_monitors.monitor_filesystem
:members:
:undoc-members:

monitor_mast.py
---------------
.. automodule:: jwql.jwql_monitors.monitor_mast
:members:
:undoc-members:
10 changes: 8 additions & 2 deletions docs/source/tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ test_edb.py
:members:
:undoc-members:

test_edb_telemetry_monitor.py
-----------------------------
.. automodule:: jwql.tests.test_edb_telemetry_monitor
:members:
:undoc-members:

test_instrument_properties.py
-----------------------------
.. automodule:: jwql.tests.test_instrument_properties
Expand All @@ -68,9 +74,9 @@ test_logging_functions.py
:members:
:undoc-members:

test_monitor_mast.py
test_mast_utils.py
--------------------
.. automodule:: jwql.tests.test_monitor_mast
.. automodule:: jwql.tests.test_mast_utils
:members:
:undoc-members:

Expand Down
8 changes: 1 addition & 7 deletions docs/source/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
utils
*****

anomaly_query_config.py
-----------------------
.. automodule:: jwql.utils.anomaly_query_config
:members:
:undoc-members:

calculations.py
---------------
.. automodule:: jwql.utils.calculations
Expand Down Expand Up @@ -90,4 +84,4 @@ utils.py
--------
.. automodule:: jwql.utils.utils
:members:
:undoc-members:
:undoc-members:
6 changes: 0 additions & 6 deletions docs/source/website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ data_containers.py
:members:
:undoc-members:

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

forms.py
--------
.. automodule:: jwql.website.apps.jwql.forms
Expand Down
Loading