astropy-tutorials icon indicating copy to clipboard operation
astropy-tutorials copied to clipboard

Spectroscopic Data Reduction Basics: Spectroscopic Trace

Open keflavich opened this issue 3 years ago • 3 comments

This is a resuscitation of #464, #465, but now splitting up into individual notebooks.

There is still some work to do - I need to clean up the frontmatter and remove the output figures before this gets merged.

I'd also like to request review from @tepickering - are there any specreduce tools that should be referenced here? The code used in this example is very low-level, but we could wrap up with, "Here's how you do this more efficiently (in a single command) with specreduce"

keflavich avatar Dec 14 '21 17:12 keflavich

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

oops! sorry to be so slow to follow up and look at this. we are currently in the process of implementing tracing and extraction within specreduce. the functionality isn't quite ready yet for general use, but it's getting close. once it is, we can decide whether to add "easy mode" sections that use specreduce to existing notebooks or do them in separate notebooks.

in the meantime, look into why the CI checks are failing. it looks like the spaces in the filenames are causing problems...

tepickering avatar Jan 19 '22 23:01 tepickering

I believe I've addressed all of @kelle's comments now

keflavich avatar Mar 31 '22 14:03 keflavich

Bump - can we merge this, or is further review and editing needed?

keflavich avatar Aug 22 '22 13:08 keflavich

Oops, yes, parts II and III already have that prefix. I'll add it.

Otherwise, on specreduce, sounds great - but I think we'd best punt on that edit until there is something legitimately ready. The documentation on the trace routine is pretty near blank?

keflavich avatar Aug 24 '22 18:08 keflavich

@jonathansick I ran nbstripout --extra-keys='metadata.kernelspec metadata.language_info.version metadata.toc' before committing... I don't think the pre-commit should've failed. What command do I need to get this right? https://github.com/astropy/astropy-tutorials/pull/508/commits/c673bceb4a1c2634dfc4a4af5a8c8ba4bffd7ce1

keflavich avatar Aug 24 '22 18:08 keflavich

@keflavich Here's the full command that's being run in pre-commit:

https://github.com/astropy/astropy-tutorials/blob/b51054da1c1ceec12de5a23a281a0cf93ae3f476/.pre-commit-config.yaml#L18

You might find it easier to run make init to set up pre-commit to run in your local workflow

jonathansick avatar Aug 24 '22 18:08 jonathansick

Thanks. make init is way too slow for me, I'll just add these to the command

keflavich avatar Aug 24 '22 18:08 keflavich