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

Release 1.1.0 #588

Merged
merged 179 commits into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
e80a2e9
spelling: achieve
jsoref Dec 28, 2021
a5cf6ab
spelling: alternative
jsoref Dec 28, 2021
ccc91b9
spelling: analysis
jsoref Dec 28, 2021
7f51b3f
spelling: aperturename
jsoref Dec 28, 2021
307f817
spelling: approximation
jsoref Dec 28, 2021
cd89119
spelling: based
jsoref Dec 28, 2021
975e7d8
spelling: channel
jsoref Dec 28, 2021
2aa1f2a
spelling: coefficients
jsoref Dec 28, 2021
65aabd1
spelling: conceivably
jsoref Dec 28, 2021
36f8ec8
spelling: coronagraph
jsoref Dec 28, 2021
e8fc210
spelling: create
jsoref Dec 28, 2021
a66b46a
spelling: decoration
jsoref Dec 28, 2021
2c852a0
spelling: descriptive
jsoref Dec 28, 2021
4650558
spelling: differences
jsoref Dec 28, 2021
4c02faf
spelling: different
jsoref Dec 28, 2021
e9d034d
spelling: distribution
jsoref Dec 28, 2021
d3a8273
spelling: entrance
jsoref Dec 28, 2021
7cf4a20
spelling: exactly
jsoref Dec 28, 2021
8e7cdb6
spelling: execution
jsoref Dec 28, 2021
d4e2094
spelling: functionality
jsoref Dec 28, 2021
ef3e93a
spelling: implement
jsoref Dec 28, 2021
124580f
spelling: inconsistency
jsoref Dec 28, 2021
11605d6
spelling: independence
jsoref Dec 28, 2021
ea84fd1
spelling: interchangeably
jsoref Dec 28, 2021
e82e880
spelling: legendres
jsoref Dec 28, 2021
bf38df2
spelling: maghami
jsoref Dec 28, 2021
eca4b0f
spelling: manageable
jsoref Dec 28, 2021
8553b22
spelling: multiprocessing
jsoref Dec 28, 2021
0c8af63
spelling: newcentroids
jsoref Dec 28, 2021
0abb2b6
spelling: noticeably
jsoref Dec 28, 2021
2327ab6
spelling: offsets
jsoref Dec 28, 2021
0b8b798
spelling: overview
jsoref Dec 28, 2021
59f7f5b
spelling: parameters
jsoref Dec 28, 2021
c9e4cab
spelling: predicts
jsoref Dec 28, 2021
835c6b8
spelling: preemptively
jsoref Dec 28, 2021
d218125
spelling: prism
jsoref Dec 28, 2021
4e982fa
spelling: prototype
jsoref Dec 28, 2021
b568f2f
spelling: rectangle
jsoref Dec 28, 2021
3de9515
spelling: relatedly
jsoref Dec 28, 2021
c1329d1
spelling: represented
jsoref Dec 28, 2021
3fe497d
spelling: should
jsoref Dec 28, 2021
e92330b
spelling: something
jsoref Dec 28, 2021
78b4b84
spelling: specific
jsoref Dec 28, 2021
90d5a89
spelling: sphinxsidebar
jsoref Dec 28, 2021
520bcc5
spelling: stability
jsoref Dec 28, 2021
9e09e72
spelling: substantially
jsoref Dec 28, 2021
510323d
spelling: substrate
jsoref Dec 28, 2021
352fa19
spelling: subtle
jsoref Dec 28, 2021
3d1181e
spelling: thereof
jsoref Dec 28, 2021
67380ec
Add pytest-astropy-header to conftest.py
shanosborne Feb 1, 2022
5e8640d
remove pytest-astropy-header since astropy-header installs it
shanosborne Feb 1, 2022
1192c31
set pytest path
shanosborne Feb 1, 2022
ef3cdb9
updated bad link in installation.rst
NaincyKumariKnoldus Feb 15, 2022
2b3f461
Move vmin and vmax definitions inside the normalization object
shanosborne Mar 9, 2022
b93ac46
Merge pull request #530 from shanosborne/add-pytest-astropy-header
mperrin Mar 10, 2022
3ef40ad
Merge branch 'develop' of github.com:spacetelescope/webbpsf into fix-…
shanosborne Mar 11, 2022
38f464b
Update astropy install method in tox.ini file
shanosborne Mar 19, 2022
91a6d28
set up pinned pysiaf for opd test
shanosborne Mar 19, 2022
189e48d
Merge pull request #540 from shanosborne/fix-failing-ci
mperrin Mar 29, 2022
16367d1
Bump photutils from 1.2.0 to 1.4.0
dependabot[bot] Mar 29, 2022
70b56a8
Merge pull request #541 from spacetelescope/dependabot/pip/photutils-…
shanosborne Mar 29, 2022
290227c
Bump matplotlib from 3.5.0 to 3.5.1
dependabot[bot] Mar 29, 2022
682f1b2
Bump pysiaf from 0.13.0 to 0.15.0
dependabot[bot] Mar 29, 2022
2d4d270
Merge pull request #523 from spacetelescope/dependabot/pip/matplotlib…
shanosborne Mar 29, 2022
7e71be6
Bump ipython from 7.30.0 to 8.2.0
dependabot[bot] Mar 29, 2022
5bc4499
Merge pull request #543 from spacetelescope/dependabot/pip/ipython-8.2.0
shanosborne Mar 29, 2022
b376cf6
Merge pull request #535 from spacetelescope/dependabot/pip/pysiaf-0.15.0
shanosborne Mar 29, 2022
f892e23
Bump astropy from 5.0 to 5.0.3
dependabot[bot] Mar 29, 2022
45081c5
Merge pull request #542 from spacetelescope/dependabot/pip/astropy-5.0.3
shanosborne Mar 29, 2022
3a983ad
Bump numpy from 1.21.4 to 1.22.3
dependabot[bot] Mar 29, 2022
ded39c7
Merge pull request #544 from spacetelescope/dependabot/pip/numpy-1.22.3
shanosborne Mar 29, 2022
ae8794a
Bump scipy from 1.7.3 to 1.8.0
dependabot[bot] Mar 29, 2022
ab9fa0d
Merge pull request #536 from spacetelescope/dependabot/pip/scipy-1.8.0
shanosborne Mar 29, 2022
88390b1
Merge branch 'develop' of github.com:spacetelescope/webbpsf into fix-…
shanosborne Mar 30, 2022
db1c61f
Merge pull request #537 from shanosborne/fix-gridded-display
shanosborne Mar 30, 2022
7b5e057
Bump astropy from 5.0.3 to 5.0.4
dependabot[bot] Apr 1, 2022
1bac3c4
Merge pull request #545 from spacetelescope/dependabot/pip/astropy-5.0.4
shanosborne Apr 1, 2022
d5d7bc4
Merge pull request #520 from jsoref/spelling
shanosborne Apr 1, 2022
f7c54b7
build(deps): bump ipython from 8.2.0 to 8.3.0
dependabot[bot] May 1, 2022
ba05ffd
Merge pull request #546 from spacetelescope/dependabot/pip/ipython-8.3.0
shanosborne May 2, 2022
4de0458
Merge pull request #532 from NaincyKumariKnoldus/fix
shanosborne May 25, 2022
336fbfe
Fix requirements file call in docs
shanosborne May 25, 2022
89199b5
Remove python 3.7 and add Python 3.10
shanosborne May 25, 2022
552d8ef
Update webbpsf version for new python requirements
shanosborne May 25, 2022
2224153
Update publish to pypi yml to fix git secutiry issue
shanosborne May 25, 2022
bb1b7ef
Merge pull request #548 from shanosborne/fix-docs
shanosborne May 25, 2022
8a86ac3
Merge pull request #549 from shanosborne/remove-py37
shanosborne May 25, 2022
3fa0753
build(deps): bump numpy from 1.22.3 to 1.22.4
dependabot[bot] Jun 1, 2022
eb65a8a
Merge pull request #555 from spacetelescope/dependabot/pip/numpy-1.22.4
mperrin Jun 2, 2022
e04549c
build(deps): bump astropy from 5.0.4 to 5.1
dependabot[bot] Jun 2, 2022
f4a32fe
build(deps): bump pysiaf from 0.15.0 to 0.16.4
dependabot[bot] Jun 2, 2022
3f29281
add ability to retrieve OPDs from MAST and use them in webbpsf straig…
mperrin Jun 2, 2022
9796e6c
Merge pull request #553 from spacetelescope/dependabot/pip/astropy-5.1
mperrin Jun 2, 2022
a56b304
build(deps): bump matplotlib from 3.5.1 to 3.5.2
dependabot[bot] Jun 2, 2022
45d9a2d
get the select OPD by date functions working.
mperrin Jun 2, 2022
d88e1b4
Merge pull request #552 from spacetelescope/dependabot/pip/matplotlib…
mperrin Jun 6, 2022
77f4900
build(deps): bump ipython from 8.3.0 to 8.4.0
dependabot[bot] Jun 6, 2022
887a526
minor infrastructure refactor and plotting, in support of continued w…
mperrin Jun 6, 2022
980429c
add astroquery dependency
mperrin Jun 6, 2022
52c2919
Use a separate instrument instance for sensing SI WFE, distinct from …
mperrin Jun 6, 2022
0b4f9ea
Merge pull request #554 from spacetelescope/dependabot/pip/pysiaf-0.16.4
mperrin Jun 6, 2022
92b82c3
build(deps): bump scipy from 1.8.0 to 1.8.1
dependabot[bot] Jun 6, 2022
8b0887e
add save_ote_wfe feature to export the OTE-only WFE for a given date …
mperrin Jun 9, 2022
7d82012
implement 'closest' method to find OPDs closest in time.
mperrin Jun 10, 2022
3279e0f
Merge pull request #551 from spacetelescope/dependabot/pip/scipy-1.8.1
mperrin Jun 10, 2022
bb8706e
Merge pull request #550 from spacetelescope/dependabot/pip/ipython-8.4.0
mperrin Jun 10, 2022
cce38a5
move astroquery imports, such that it's not a required dependency if …
mperrin Jun 10, 2022
5ee8cfc
Also back out OTE field dependence terms. Change plots to show this t…
mperrin Jun 10, 2022
4ced622
adding the option to save the OPDs from MAST to an user specified path
Jun 16, 2022
bf030c0
add functions to retrieve table of OPDs, and table of WFC corrections
mperrin Jun 16, 2022
c4db655
save output OPDs in units of microns. Add convenient option to get la…
mperrin Jun 17, 2022
9fabf22
improve some details of WFE handling, and some plot labels. Add use o…
mperrin Jun 28, 2022
e8529bb
build(deps): bump numpy from 1.22.4 to 1.23.0
dependabot[bot] Jul 1, 2022
84019c5
build(deps): bump pysiaf from 0.16.4 to 0.17.0
dependabot[bot] Jul 1, 2022
4049b29
Merge pull request #558 from spacetelescope/dependabot/pip/pysiaf-0.17.0
mperrin Jul 14, 2022
3201dd6
Merge pull request #557 from spacetelescope/dependabot/pip/numpy-1.23.0
mperrin Jul 14, 2022
2124398
add documentation for measured OPDs
mperrin Jul 14, 2022
c230393
Merge pull request #556 from mperrin/wss_opds_from_mast
mperrin Jul 14, 2022
b9456cb
update jitter
mperrin Jun 2, 2022
c92c783
update docs and rel notes for in flight
mperrin Jul 14, 2022
a79c0e1
docs use python 3.8, since RTD doesn't yet support 3.9
mperrin Jul 14, 2022
adb2ad3
Merge pull request #559 from mperrin/optical_model_updates
mperrin Jul 14, 2022
f306e38
bug fix import
mperrin Jul 14, 2022
469ab8b
bug fix import and RTD python version
mperrin Jul 14, 2022
2b5650d
Merge branch 'optical_model_updates_2' of github.com:mperrin/webbpsf-…
mperrin Jul 14, 2022
6d83a9d
Merge pull request #560 from mperrin/optical_model_updates_2
mperrin Jul 14, 2022
e9c446e
Reordered installation recommendations
ojustino Jul 15, 2022
7815517
output_path passed to mast_retrieve_opd() when default choice=='closest'
rcooper295 Jul 29, 2022
eecd1bf
build(deps): bump photutils from 1.4.0 to 1.5.0
dependabot[bot] Aug 1, 2022
a5c0d13
add unit test for coron_shift
mperrin Sep 9, 2022
4f177a4
Merge pull request #578 from mperrin/test_coron_shift
mperrin Sep 9, 2022
a959446
removed MAST token function because it is not necesary and also added…
obi-wan76 Sep 12, 2022
45aa2e9
Merge pull request #579 from obi-wan76/webbpsf_opd_remove_token
mperrin Sep 14, 2022
89da8da
Merge pull request #561 from ojustino/warn-astroconda
mperrin Sep 14, 2022
241014d
Merge branch 'develop' into opd_outputpath
mperrin Sep 14, 2022
3a7510a
minor: quiet a numpy deprecation warning
mperrin Sep 14, 2022
04ed603
handle additional cases when inferring WSS correction IDs
mperrin Aug 8, 2022
bce8df3
add many more kinds of trending plots and docs
mperrin Aug 19, 2022
d852dd2
add docs page with wf delta plots
mperrin Aug 19, 2022
44a66cc
additional trending plot enhancements. Add histogram plot function too.
mperrin Sep 14, 2022
042dd4e
add histogram plot to docs
mperrin Sep 14, 2022
75911b0
revisions following PR review
mperrin Sep 14, 2022
1a364da
minor: improve plotting labels
mperrin Sep 15, 2022
6853ce7
minor: improve plot flexibility and verbose logging in gridded PSF li…
mperrin Aug 8, 2022
19e99e4
Merge pull request #580 from mperrin/fix_deprecation_warning
mperrin Sep 15, 2022
1a2cac6
fix CI issue: avoid verbose output in CI test, since the verbose vers…
mperrin Sep 15, 2022
bf76095
Merge pull request #581 from mperrin/improve_psfgrid_plots
mperrin Sep 15, 2022
d2a9188
Merge pull request #563 from rcooper295/opd_outputpath
mperrin Sep 15, 2022
ed6d013
Improve monthly trending plot based on user feedback: show delta EEs …
mperrin Sep 15, 2022
23300fc
cleanup notebook
mperrin Sep 15, 2022
9d561fa
Merge pull request #571 from mperrin/optical_model_updates_2
mperrin Sep 16, 2022
e7e70ce
enforce image origin = lower everywhere, for consistency
mperrin Sep 16, 2022
ad994bf
Merge pull request #582 from mperrin/set_image_origin
mperrin Sep 16, 2022
1de2970
release prep: update default OPD and data file version, and misc mino…
mperrin Sep 17, 2022
049ee00
Update release notes, and refresh tutorial notebook
mperrin Sep 17, 2022
1fee45f
update datafile release script for 1.1
mperrin Sep 17, 2022
8d8c80c
Update data file links to data files for version 1.1.0
mperrin Sep 17, 2022
beff486
try 2 on box shared links
mperrin Sep 17, 2022
cb53f43
added some information about source and mask offsets
obi-wan76 Sep 19, 2022
a618154
Merge pull request #564 from spacetelescope/dependabot/pip/photutils-…
ojustino Sep 20, 2022
7c7da2f
build(deps): bump pysiaf from 0.17.0 to 0.18.0
dependabot[bot] Sep 20, 2022
4772746
Merge pull request #566 from spacetelescope/dependabot/pip/pysiaf-0.18.0
ojustino Sep 20, 2022
0e74755
build(deps): bump matplotlib from 3.5.2 to 3.6.0
dependabot[bot] Sep 20, 2022
c5cf284
build(deps): bump scipy from 1.8.1 to 1.9.1
dependabot[bot] Sep 20, 2022
f3c90c3
Merge pull request #574 from spacetelescope/dependabot/pip/scipy-1.9.1
ojustino Sep 20, 2022
90d20ca
Merge pull request #586 from spacetelescope/dependabot/pip/matplotlib…
ojustino Sep 20, 2022
c0e6ea7
build(deps): bump numpy from 1.23.0 to 1.23.3
dependabot[bot] Sep 20, 2022
b1e877d
Merge pull request #587 from spacetelescope/dependabot/pip/numpy-1.23.3
ojustino Sep 20, 2022
3243bfb
Made small rendering change
ojustino Sep 20, 2022
951184e
Merge pull request #585 from obi-wan76/update_doc
ojustino Sep 20, 2022
3043539
Removed obsolete code in minimal data file script
ojustino Sep 20, 2022
c324bc0
Merge pull request #584 from mperrin/release_1.1_prep
ojustino Sep 20, 2022
954989a
Fixed typo in publish-to-pypi.yml
ojustino Sep 20, 2022
8fd79fe
Merge pull request #589 from ojustino/pypi-action-fix
ojustino Sep 20, 2022
62aaab5
Adjusted install/release instructions post-conda
ojustino Sep 21, 2022
6c0b077
Updated release notes
ojustino Sep 21, 2022
21d4f49
Merge pull request #590 from ojustino/strike-astroconda
ojustino Sep 21, 2022
56a1834
Changed release date in notes
ojustino Sep 23, 2022
7d0deb9
Merge pull request #593 from ojustino/relnotes-1.1.0
ojustino Sep 23, 2022
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
26 changes: 13 additions & 13 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ jobs:

- name: Coverage test in Python 3
os: ubuntu-latest
python: 3.9
toxenv: py39-poppydev-pysiafdev-cov
python: '3.10'
toxenv: py310-poppydev-pysiafdev-cov

- name: Check for Sphinx doc build errors
os: ubuntu-latest
python: 3.8
python: 3.9
toxenv: docbuild

- name: Try Astropy development version
os: ubuntu-latest
python: 3.8
toxenv: py38-astropydev-test
python: 3.9
toxenv: py39-astropydev-test

- name: Try latest versions of all dependencies
os: ubuntu-latest
python: 3.9
toxenv: py39-latest-test
python: '3.10'
toxenv: py310-latest-test

- name: Try minimum supported versions
os: ubuntu-latest
python: 3.7
toxenv: py37-legacy37-test
python: 3.8
toxenv: py38-legacy-test

- name: Try released POPPY and PySIAF
os: ubuntu-latest
python: 3.7
toxenv: py37-stable-test
python: 3.8
toxenv: py38-stable-test
continue-on-error: 'true'

steps:
Expand All @@ -57,8 +57,8 @@ jobs:
run: pip install tox tox-conda>=0.2

- name: Get WebbPSF Data
run: | # Get WebbPSF data files (just a subset of the full 250 MB!) and set up environment variable
wget https://stsci.box.com/shared/static/ftj8esrt0apzbnff8j6m5kseii2jzy9e.gz -O /tmp/minimal-webbpsf-data.tar.gz
run: | # Get WebbPSF data files (just a subset of the full dataset!) and set up environment variable
wget https://stsci.box.com/shared/static/963l3m4hcrpc29bqxq68ilcsfgfqwiyc.gz -O /tmp/minimal-webbpsf-data.tar.gz
tar -xzvf /tmp/minimal-webbpsf-data.tar.gz
echo "WEBBPSF_PATH=${{github.workspace}}/webbpsf-data" >> $GITHUB_ENV

Expand Down
28 changes: 9 additions & 19 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@ on:
types: [released]

jobs:
build:
name: Publish release to PyPI
env:
PYPI_USERNAME_STSCI_MAINTAINER: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
PYPI_PASSWORD_STSCI_MAINTAINER: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
PYPI_USERNAME_OVERRIDE: ${{ secrets.PYPI_USERNAME_OVERRIDE }}
PYPI_PASSWORD_OVERRIDE: ${{ secrets.PYPI_PASSWORD_OVERRIDE }}
PYPI_TEST: ${{ secrets.PYPI_TEST }}
INDEX_URL_OVERRIDE: ${{ secrets.INDEX_URL_OVERRIDE }}
runs-on: ubuntu-latest
steps:

# Check out the commit containing this workflow file.
- name: checkout repo
uses: actions/checkout@v2

- name: custom action
uses: spacetelescope/action-publish_to_pypi@master
id: custom_action_0
publish:
uses: spacetelescope/action-publish_to_pypi/.github/workflows/workflow.yml@master
with:
test: false
build_platform_wheels: false # Set to true if your package contains a C extension
secrets:
user: ${{ secrets.PYPI_USERNAME_STSCI_MAINTAINER }}
password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} # WARNING: Do not hardcode secret values here! If you want to use a different user or password, you can override this secret by creating one with the same name in your Github repository settings.
test_password: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER_TEST }}
4 changes: 2 additions & 2 deletions dev_utils/field_dependence/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import matplotlib.pyplot as plt
import math

# This is the start of an experimental protoype object oriented code for representing wavefronts. The intent is to
# This is the start of an experimental prototype object oriented code for representing wavefronts. The intent is to
# represent a wavefront in such a way that calling code doesn't need to care about the representation and can just ask
# for the data as an array of OPD values on a regular grid, polynomial coefficients, or other without caring about
# the internal representation or worrying about fitting or expanding polynomials out, etc.
Expand Down Expand Up @@ -189,7 +189,7 @@ def polynomials(self):
'Unit PV normalization is not implemented. Previous implementation broke orthogonality')
# TODO: FIX THIS!!! An offset like this to force things to run from -1 to 1 will break orthogonality, and
# must not be done. Think about what to do instead. Check Noll paper. Possible just make PV truly unity
# and don't care about what the absolute max and min values are. Also impletment property decorator and
# and don't care about what the absolute max and min values are. Also implement property decorator and
# change decorator for changing the output normalization.
# scale = [1]
# offset = [0]
Expand Down
6 changes: 3 additions & 3 deletions dev_utils/field_dependence/read_codev_dat_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import datetime

# Script that reads in a set of CodeV Pupil map OPD files across fields and instruments and fits Zernikes to the OPD
# distribution at each field point and then Lengdres to the variation of each Zernike coefficient across field. The
# distribution at each field point and then Legendres to the variation of each Zernike coefficient across field. The
# Resulting table of Legendres coefficients for each Zernike term is written to a .fits table which is then used in
# WebbPSF to model field dependence.

Expand Down Expand Up @@ -154,11 +154,11 @@ def main():
wavelength_nm, basis.units.nm, wf_basis=legendres)
legendre_var_global = basis.PointByPointWavefront(cur_coeffs_global, np.ones_like(cur_coeffs_global).astype(bool), 4,
wavelength_nm, basis.units.nm, wf_basis=legendres)
# Pull out the Legendre coeffcients from the wavefront object
# Pull out the Legendre coefficients from the wavefront object
legendre_coeffs_local[:, index] = legendre_var_local.coeffs
legendre_coeffs_global[:, index] = legendre_var_global.coeffs

# Store the Legendre coeffcients for the current Zernike term as a fits column and store in column list.
# Store the Legendre coefficients for the current Zernike term as a fits column and store in column list.
cur_fits_col_local = fits.Column(name=f'Zernike {index} Legendres', format='D', array=legendre_coeffs_local[:,index])
fits_column_list_local.append(cur_fits_col_local)
cur_fits_col_global = fits.Column(name=f'Zernike {index} Legendres', format='D', array=legendre_coeffs_global[:,index])
Expand Down
2 changes: 1 addition & 1 deletion dev_utils/grab_opd_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def grab_opd_info(opd_data_str, npix=1024):
A nested dictionary containing masks (labels) for each JWST segment
newlabels: array
A combined label plot with segments properly combined
newcentorids: dictionary
newcentroids: dictionary
The center of each segment in pixels(?)
segradius: float
The radius of each segment
Expand Down
28 changes: 3 additions & 25 deletions dev_utils/make-minimal-datafiles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Make minimal data files
# This is used to make a stripped-down version of the data files for use on Travis CI
# This is used to make a stripped-down version of the data files for use on GitHub Actions

import os, sys
import astropy.io.fits as fits
Expand Down Expand Up @@ -29,30 +29,8 @@
os.chdir(WORKING_DIR)
subprocess.call("tar xvzf "+inputfile, shell=True)

print("#### Trimming to only one OPD file per instrument ####")
for instr in insts:
files = glob.glob(os.path.join(WORKING_DIR, 'webbpsf-data', instr, "OPD", "*.fits.gz"))
files.sort()
print(instr, files)

# just save the lowest alphabetically of each of them
for file_to_delete in files[1:]:
print("Deleting "+file_to_delete)
os.remove(file_to_delete)

print("Trimming to only 1 datacube slice: "+files[0])

f0 = fits.open(files[0])
f0[0].data = f0[0].data[0]
f0.writeto(files[0], overwrite=True)
f0.close()

# Do the same for the Rev AA OTE OPD
ote_fn = os.path.join(WORKING_DIR, 'webbpsf-data','JWST_OTE_OPD_RevAA_prelaunch_predicted.fits.gz')
f0 = fits.open(ote_fn)
f0[0].data = f0[0].data[0]
f0.writeto(ote_fn, overwrite=True)
f0.close()
# Remove this for >= 1.1.0:
os.remove(os.path.join(WORKING_DIR, 'webbpsf-data','JWST_OTE_OPD_RevAA_prelaunch_predicted.fits.gz'))


print("#### Removing extra optional pupil files ####")
Expand Down
2 changes: 1 addition & 1 deletion dev_utils/wfe_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Note: meant to just copy/paste into ipython command line

# Import WebbPSF and setup multliprocessing
# Import WebbPSF and setup multiprocessing
import webbpsf
webbpsf.webbpsf_core.poppy.conf.use_fftw = False
webbpsf.webbpsf_core.poppy.conf.use_multiprocessing = True
Expand Down
4 changes: 2 additions & 2 deletions docs/_themes/theme_webbpsf/static/bootstrap-astropy.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt, pre, code, tt {
background-color: #f8f8f8;
}

/* override box for links & other sphinx-specifc stuff */
/* override box for links & other sphinx-specific stuff */
tt.xref, a tt, tt.descname, tt.descclassname {
padding: 0 1px 0 1px;
border: none;
Expand Down Expand Up @@ -485,7 +485,7 @@ a.headerlink {
a.headerlink:hover {
background-color: #0069d6;
color: white;
text-docoration: none;
text-decoration: none;
}


Expand Down
4 changes: 2 additions & 2 deletions docs/_themes/theme_webbpsf/static/bootstrap-webbpsf.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt, pre, code, tt {
background-color: #f8f8f8;
}

/* override box for links & other sphinx-specifc stuff */
/* override box for links & other sphinx-specific stuff */
tt.xref, a tt, tt.descname, tt.descclassname {
padding: 0 1px 0 1px;
border: none;
Expand Down Expand Up @@ -488,7 +488,7 @@ a.headerlink {
a.headerlink:hover {
background-color: #0069d6;
color: white;
text-docoration: none;
text-decoration: none;
}


Expand Down
2 changes: 1 addition & 1 deletion docs/_themes/theme_webbpsf/static/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This script makes the Sphinx sidebar collapsible.
*
* .sphinxsidebar contains .sphinxsidebarwrapper. This script adds
* in .sphixsidebar, after .sphinxsidebarwrapper, the #sidebarbutton
* in .sphinxsidebar, after .sphinxsidebarwrapper, the #sidebarbutton
* used to collapse and expand the sidebar.
*
* When the sidebar is collapsed the .sphinxsidebarwrapper is hidden
Expand Down
72 changes: 32 additions & 40 deletions docs/available_opds.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,35 @@
Appendix: Available Optical Path Difference (OPD) files
================================================================

For each of the five instruments (four SIs plus FGS) there are three provided OPD files. These represent wavefronts as follows:

1. The OTE and ISIM intrinsic WFE
2. The above, plus a slight defocus to blur the image slightly to approximate image motion.
3. The above #2, plus additional WFE due to SI internal optics.

The latter is the largest WFE, and is the default file used in simulations unless another is explicitly chosen. For NIRCam only there is a second, duplicate set of these files with slightly improved WFE based on an optimistic case scenario for instrument and telescope alignment.

The provided OPDs are based on the observatory design requirements, and were developed for the Mission Critical Design Review. The represent the nominal case of performance for JWST, and have not yet been updated with as-built details of mirror surface figures, etc. We intend to make updated OPD files available once suitable reference data have been provided to STScI. For now, see `Lightsey et al. 2014 <http://adsabs.harvard.edu/abs/2014SPIE.9143E..04L>`_ for recent predictions of JWST's likely performance

Note that the trick of adding some (nonphysical) defocus to blur out the PSF is computationally easy and rapid, but does not give a high fidelity
representation of the true impact of image jitter. This is particularly true for coronagraphic observations. Future versions of WebbPSF will likely
provide higher fidelity jitter models.

The units of the supplied OPD files are wavefront error in microns.

.. table:: Rev V OPDs

========================= ========== ======= ======================== ========================== =======
File Instrument RMS WFE Includes OTE + ISIM OPD? Image motion (as defocus)? SI OPD?
========================= ========== ======= ======================== ========================== =======
OPD_RevV_fgs_150.fits FGS 150.0 Yes No No
OPD_RevV_fgs_163.fits FGS 163.0 Yes Yes No
OPD_RevV_fgs_186.fits FGS 186.0 Yes Yes Yes
OPD_RevV_miri_204.fits MIRI 204.0 Yes No No
OPD_RevV_miri_220.fits MIRI 220.0 Yes Yes No
OPD_RevV_miri_421.fits MIRI 421.0 Yes Yes Yes
OPD_RevV_nircam_115.fits NIRCam 115.0 Yes, optimistic case No No
OPD_RevV_nircam_123.fits NIRCam 123.0 Yes No No
OPD_RevV_nircam_132.fits NIRCam 132.0 Yes, optimistic case Yes No
OPD_RevV_nircam_136.fits NIRCam 136.0 Yes Yes No
OPD_RevV_nircam_150.fits NIRCam 150.0 Yes, optimistic case Yes Yes
OPD_RevV_nircam_155.fits NIRCam 155.0 Yes Yes Yes
OPD_RevV_nirspec_125.fits NIRSpec 125.0 Yes No No
OPD_RevV_nirspec_145.fits NIRSpec 145.0 Yes Yes No
OPD_RevV_nirspec_238.fits NIRSpec 238.0 Yes Yes Yes
OPD_RevV_niriss_144.fits NIRISS 144.0 Yes No No
OPD_RevV_niriss_162.fits NIRISS 162.0 Yes Yes No
OPD_RevV_niriss_180.fits NIRISS 180.0 Yes Yes Yes
========================= ========== ======= ======================== ========================== =======

On-Orbit OPD Measurements
-------------------------

The default OPD in WebbPSF is now an on-orbit measured OPD from early in cycle 1 science operations:

* `JWST_OTE_OPD_cycle1_example_2022-07-30.fits`: The specific OPD measurement selected, from 2022 July 30, intentionally represents a slightly conservative alignment state (after a couple weeks of relative stability, shortly before a next wavefront correction). This is about a 75th percentile performance level, based on operational experience during the first few months of cycle 1. Most observations will have OPDs similar to this, or slightly better; a smaller number will have not quite as good.

This intentionally-slightly-conservative OPD was chosen for use in the cycle 2 ETC and is set as the default here for consistency.
For modeling PSFs of science observations, it is generally best to retrieve and use the
`measured in-flight wavefronts <https://webbpsf.readthedocs.io/en/latest/jwst_measured_opds.html>`_ based on the date of
the science observation.




Pre-Launch Model OPDs (Obsolete)
---------------------------------

Prior versions of this page documented the _pre-flight_ models for JWST wavefronts. These models are now happily obsolete, and can be replaced by
`actual measured in-flight wavefronts <https://webbpsf.readthedocs.io/en/latest/jwst_measured_opds.html>`_.


Most pre-launch predicted OPDs are no longer included in the WebbPSF data files distribution. The only such files still
included are

* `JWST_OTE_OPD_RevAA_prelaunch_predicted.fits.gz`: This contains predicted OPDs based on the best available optical models at the time of launch, including the calibrated, known surface figures of each mirror as measured in ground testing. For most purposes this is superceded by the on-orbit measurements. It is retained for back-compatibility mostly.


For any cases in which you may need further information about the other pre-launch predicted OPD files,
consult the `older versions of this page hosted on readthedocs<https://webbpsf.readthedocs.io/en/v0.9.0/available_opds.html>`_.

2 changes: 1 addition & 1 deletion docs/fft_optimization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Caching of plans means that irunning the same script a second time is much faste
-----------------------------------------------------------------------------------
Immediately after executing the above, I ran the same script again. Now the planning times all become essentially negligible.

Oddly, the exection time for the largest array gets longer. I suspect this has something to do with memory or system load. ::
Oddly, the execution time for the largest array gets longer. I suspect this has something to do with memory or system load. ::

For arrays of size 1024x1024
Building input circular aperture
Expand Down
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Contents
relnotes.rst
usage.rst
jwst.rst
jwst_optical_budgets.ipynb
jwst_measured_opds.ipynb
jwst_wavefront_deltas.ipynb
roman.rst
psf_grids.rst
more_examples.rst
Expand Down
Loading