Skip to content

Comments

Working on Issue 238#243

Draft
rh2082 wants to merge 8 commits intosunpy:mainfrom
rh2082:addconftest
Draft

Working on Issue 238#243
rh2082 wants to merge 8 commits intosunpy:mainfrom
rh2082:addconftest

Conversation

@rh2082
Copy link
Contributor

@rh2082 rh2082 commented Dec 1, 2025

Added a time-energy spectrum object to conftest.py

@DanRyanIrish
Copy link
Member

Hi @rh2082. Thanks for this PR!

@@ -1,44 +1,28 @@
# This file is used to configure the behavior of pytest when using the Astropy
Copy link
Member

Choose a reason for hiding this comment

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

Can you add all these comments back in as they are part of the template and we might want to uncomment certain bits of code that they suggest at a later date.

Comment on lines 26 to 28
timeenergy = wcs_et()
data = np.arange(1, 11) * u.watt
spec = Spectrum(data, wcs=timeenergy)
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be part of a fixture too.

rh2082 and others added 2 commits December 1, 2025 15:37
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
@DanRyanIrish
Copy link
Member

This looks like a good start. Now try including fixtures for the other combinations of axes listed in the issue.

Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
@DanRyanIrish
Copy link
Member

Home human-readable fixture names and some short docstrings would be helpful.

@DanRyanIrish
Copy link
Member

@samaloney Do you want all of these fixtures to have uncertainties, masks, or other supporting data?

@rh2082
Copy link
Contributor Author

rh2082 commented Dec 11, 2025

@samaloney Would you mind reviewing this please and letting me know what attributes other than coordinates you'd like me to add?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants