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

Introducing Horne extraction #84

Merged
merged 12 commits into from
Mar 29, 2022
9 changes: 3 additions & 6 deletions notebook_sandbox/horne_extract/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ astropy=5.0
matplotlib==3.5.0
numpy==1.21.4

# remember the following:
# KOSMOS-specific steps for notebook:
# git clone git@github.com:jradavenport/kosmos.git OR git clone https://github.com/jradavenport/kosmos
# fix ".data" error in trace function
# use location as argument to sys.path.insert()

# will also need to clone specreduce
# git clone git@github.com:astropy/specreduce.git OR git clone https://github.com/astropy/specreduce
# find and delete all occurrences of ".data" in kosmos/apextract.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that if NDData or CCDData is used as an input, like me and @eteq have requested, this wouldn't be required. the docstring in kosmos says 2d numpy array, or CCDData object, but the use of the .data attribute means it actually needs something NDData-like.

Copy link
Contributor Author

@ojustino ojustino Mar 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this, but it doesn't work because the KOSMOS trace also tries to call img.shape on the object, which isn't an NDData attribute. The best solution would be to update this notebook to use KosmosTrace once #85 is finished.

# use local location of root KOSMOS repository as argument to sys.path.insert()