Skip to content

Improve data validation and documentation in Generic Spectrogram#191

Open
SayaneeHaldar wants to merge 3 commits intosunpy:mainfrom
SayaneeHaldar:main
Open

Improve data validation and documentation in Generic Spectrogram#191
SayaneeHaldar wants to merge 3 commits intosunpy:mainfrom
SayaneeHaldar:main

Conversation

@SayaneeHaldar
Copy link
Copy Markdown

This PR improves robustness of the Generic Spectrogram class by:

  • Converting input data to a NumPy array
  • Masking invalid values (e.g., NaNs)
  • Adding a dimensionality check
  • Improving docstring clarity

These changes improve handling of real observational data while maintaining compatibility.

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.

1 participant