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

Data Objects #196

Merged
merged 78 commits into from
Nov 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
d4fcb5c
Add data model
robertdstein Nov 17, 2022
95d2232
Apply data model to base processor
robertdstein Nov 17, 2022
aec5fd2
Clean up data model
robertdstein Nov 17, 2022
c33fa98
Transition some processors
robertdstein Nov 17, 2022
47e98be
Fix typo
robertdstein Nov 17, 2022
08346cd
Get ImageLoader working
robertdstein Nov 17, 2022
d654bf6
Mirror order in magic methods
robertdstein Nov 17, 2022
9440ef5
Update data model
robertdstein Nov 17, 2022
f85f5c2
Update autoastrometry
robertdstein Nov 17, 2022
a77eb6b
Update candidate processors
robertdstein Nov 17, 2022
55cdef4
Update database processors
robertdstein Nov 17, 2022
7ef80c7
Update photometry processors
robertdstein Nov 17, 2022
f14f547
update_dataset rather than batches
robertdstein Nov 17, 2022
d76a6dd
Update util processors
robertdstein Nov 17, 2022
b0dc5cf
Remove duplicated file
robertdstein Nov 18, 2022
0b023eb
Update Region_file to region_bool
robertdstein Nov 18, 2022
322ca64
Update gitignore
robertdstein Nov 18, 2022
4223446
Remove old image
robertdstein Nov 18, 2022
b206082
Clean up datasets
robertdstein Nov 18, 2022
62ddd95
Update calibration processors:
robertdstein Nov 18, 2022
32e9b7a
Substantially deverboseify Fritz
robertdstein Nov 18, 2022
6eb34dc
Add keys() to data
robertdstein Nov 18, 2022
dac6ee1
add maths
robertdstein Nov 18, 2022
d5a8963
Add string/maths to images
robertdstein Nov 18, 2022
91452c0
remove redundant imports
robertdstein Nov 18, 2022
fe7a76f
Bug fix
robertdstein Nov 18, 2022
b86d34f
Add ref img key
robertdstein Nov 18, 2022
35dc2d5
Bugfix typos
robertdstein Nov 18, 2022
0ed8ecf
Clean imports
robertdstein Nov 18, 2022
239e2fd
progress on imsubv2
robertdstein Nov 18, 2022
c2729a0
Fix typo
robertdstein Nov 18, 2022
f68e85c
Deprint
robertdstein Nov 18, 2022
40f77f5
Port summer test
robertdstein Nov 18, 2022
51293c5
Bugfix
robertdstein Nov 18, 2022
fa8a39d
Port wirc test
robertdstein Nov 18, 2022
3d175b7
Delete old code
robertdstein Nov 18, 2022
a271c68
Option to initialise without list
robertdstein Nov 18, 2022
fc395b3
Port test_errors
robertdstein Nov 18, 2022
9a503fc
Type hint calhunter
robertdstein Nov 18, 2022
3b3ba21
Rename Data to DataBlock class
robertdstein Nov 18, 2022
b3f8d19
add missing Image(DataBlock)
robertdstein Nov 18, 2022
7c42793
Wrapper up _load_raw_image()
robertdstein Nov 18, 2022
31cd052
Name ewrapper load_raw_data()
robertdstein Nov 18, 2022
85196ec
Dataset not DataSet
robertdstein Nov 18, 2022
b42f5e8
Get calhunter integrated
robertdstein Nov 18, 2022
73f6760
New dataset-compliant call of reduce images
robertdstein Nov 18, 2022
473d096
Add monitor test
robertdstein Nov 19, 2022
6fb36ec
Working reference.py
robertdstein Nov 19, 2022
65c5d57
Take pathlibs for open_fits
robertdstein Nov 19, 2022
6fd4a3a
Require dataset for reduce_images
robertdstein Nov 19, 2022
2dec63e
Deprotect protected variables
robertdstein Nov 19, 2022
d3399ce
dedebug
robertdstein Nov 19, 2022
90e6c57
Typehint imagehandler
robertdstein Nov 19, 2022
6ac6463
Path for zogy
robertdstein Nov 19, 2022
906e2a9
Update reference image naming
robertdstein Nov 21, 2022
94810ea
delete errant print
robertdstein Nov 21, 2022
d315f07
More text
robertdstein Nov 22, 2022
206ce6f
Use sci sextractor
robertdstein Nov 22, 2022
67d1083
Reference generator yields Path objects
robertdstein Nov 22, 2022
e45400c
Fix typo
robertdstein Nov 22, 2022
fe8fc65
Make imsub more readable
robertdstein Nov 22, 2022
ad23647
stop
robertdstein Nov 22, 2022
7f6d419
Update
robertdstein Nov 22, 2022
cac2f21
delete redundant imports
robertdstein Nov 23, 2022
9ecd59a
Fix memory loading
robertdstein Nov 23, 2022
d696e40
New tests version
robertdstein Nov 23, 2022
e9d9635
print vaks
robertdstein Nov 23, 2022
7dec8fe
more logging for debugging
virajkaram Nov 23, 2022
1cca253
add date to sci sextractor
virajkaram Nov 23, 2022
68969c1
Deverboesify
robertdstein Nov 23, 2022
1920e55
normal logging
robertdstein Nov 23, 2022
b16aa3b
Merge branch 'data' of github.com:winter-telescope/winterdrp into data
virajkaram Nov 23, 2022
639e1d0
Remove logging
robertdstein Nov 23, 2022
21a37b4
Update main
robertdstein Nov 23, 2022
382fece
Add ImageBatch for no caks
robertdstein Nov 23, 2022
ce37382
Add ImageBatch for no cals
robertdstein Nov 23, 2022
e012771
Fix logger statements
robertdstein Nov 23, 2022
0293b03
Fix typo
robertdstein Nov 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
Prev Previous commit
Next Next commit
Take pathlibs for open_fits
  • Loading branch information
robertdstein committed Nov 22, 2022
commit 65c5d579a93f045c89ec3577143b960e54b14ba6
5 changes: 3 additions & 2 deletions winterdrp/io.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
from astropy.io import fits
import numpy as np
import astropy.io.fits
from pathlib import Path


def create_fits(
@@ -27,7 +28,7 @@ def create_fits(
def save_to_path(
data: np.ndarray,
header: astropy.io.fits.Header | None,
path: str,
path: str | Path,
overwrite: bool = True
):
"""
@@ -44,7 +45,7 @@ def save_to_path(


def open_fits(
path: str
path: str | Path
) -> tuple[np.ndarray, astropy.io.fits.Header]:
"""
Function to open a fits file saved to <path>