Skip to content

Commit 3aa38fa

Browse files
Merge branch 'spacetelescope:main' into rtbdb_implementation
2 parents 50220b2 + a81a639 commit 3aa38fa

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

src/wfi_reference_pipeline/reference_types/photom/__init__.py

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""
2+
See https://innerspace.stsci.edu/spaces/RI/pages/295761371/RFP+-+Modules+and+Algorithm+Development for more details
3+
4+
The innerspace page above has basic structure for any reference file type in the RFP repo. It is meant to be a model
5+
for how to start generating code for a new reference file type and class that will create the reference file utilizing
6+
the data model needed.
7+
8+
Also see https://github.com/spacetelescope/roman-wfi-reference-pipeline/blob/main/src/docs/how_to_make_new_reftype.txt
9+
which is basically a step by step procedure needed to generate a new reference type and meta handlers used for development
10+
and testing.
11+
"""
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
Annalisa please use this file to migrate code from Tyler's notebook to here.
3+
4+
The goals for this file would be:
5+
- Understand all of the dependencies and versions of packages needed to run the original code
6+
- Identify package versions that have been updated since the original code was created and how it impacts code changes in the updated version you'll be working on
7+
- Have this script be working and functional to produce everything needed to make a new version of the photom reference file
8+
- This will be our baseline for an implementation that we will then refactor and put into photom.py
9+
"""

src/wfi_reference_pipeline/reference_types/readnoise/readnoise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _select_data_cube_from_file_list(self):
173173
# Get the input file with the most number of reads from the sorted list.
174174
# TODO update using rdm.open() method
175175
with asdf.open(fl_reads_ordered_list[0][0]) as tmp:
176-
ref_type_data = tmp.tree["roman"]["data"]
176+
ref_type_data = np.array(tmp.tree["roman"]["data"])
177177
if isinstance(
178178
ref_type_data, u.Quantity
179179
): # Only access data from quantity object.

0 commit comments

Comments
 (0)