Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documentation update for measurement#8038

Merged
nabobalis merged 13 commits into
sunpy:mainfrom
parharti:prishasharma
Jan 30, 2025
Merged

Documentation update for measurement#8038
nabobalis merged 13 commits into
sunpy:mainfrom
parharti:prishasharma

Conversation

@parharti
Copy link
Copy Markdown
Contributor

@parharti parharti commented Jan 24, 2025

Closes #4802

This PR updates the documentation for the measurement property in the GenericMap class. It clarifies the default behavior of retrieving wavelength from the WAVELNTH FITS keyword, handling missing WAVEUNIT keywords, and how subclasses can override the property to return other observables (e.g., LOS magnetograms, continuum intensity).

Thanks to everyone who helped by sharing their doubts and communication, which significantly improved my understanding of the problem statement.

This update does not affect existing code functionality but improves documentation clarity

@parharti parharti requested a review from a team as a code owner January 24, 2025 20:03
@nabobalis nabobalis added map Affects the map submodule No Changelog Entry Needed Skip all changelog checks. backport 6.0 Documentation Affects the documentation. labels Jan 24, 2025
Copy link
Copy Markdown
Member

@ayshih ayshih left a comment

Choose a reason for hiding this comment

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

See my suggestion for a much simpler docstring

Also, please add a trivial changelog entry

Comment thread sunpy/map/mapbase.py Outdated
@ayshih ayshih removed the No Changelog Entry Needed Skip all changelog checks. label Jan 28, 2025
@parharti parharti requested a review from ayshih January 28, 2025 15:08
@nabobalis nabobalis changed the title Documentation Update for measurement Property in GenericMap Class #4802 #Prishasharma Documentation Update for measurement Property in GenericMap Class Jan 28, 2025
Comment thread sunpy/map/mapbase.py Outdated
@nabobalis
Copy link
Copy Markdown
Member

As Albert was saying, can you add a changelog? There are instructions here: https://github.com/sunpy/sunpy/blob/main/changelog/README.rst

Co-authored-by: Nabil Freij <[email protected]>
@nabobalis
Copy link
Copy Markdown
Member

Can you also fix the issues that the pre-commit.ci has found?

@nabobalis nabobalis changed the title Documentation Update for measurement Property in GenericMap Class Documentation update for measurement Jan 28, 2025
@parharti parharti requested a review from nabobalis January 28, 2025 18:34
Comment thread changelog/newfragments/8038.trivial.rst Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This file path is incorrect.

Comment thread changelog/newfragments/8038.trivial.rst Outdated
@nabobalis
Copy link
Copy Markdown
Member

Unfortunately, the pre-commit is still failing.

@ankitkhushwaha
Copy link
Copy Markdown
Contributor

hey @parharti write this in converstion
pre-commit.ci autofix
will fix the commit issue

@parharti
Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

Comment thread changelog/8038.trivial.rst Outdated
Copy link
Copy Markdown
Member

@ayshih ayshih left a comment

Choose a reason for hiding this comment

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

Just one more suggestion

Comment thread changelog/8038.trivial.rst Outdated
@nabobalis nabobalis added Minor Change PR only needs one approval to merge. Merge When CI Passes Hit that merge button when it's all green. labels Jan 30, 2025
@nabobalis nabobalis merged commit de18ed4 into sunpy:main Jan 30, 2025
meeseeksmachine pushed a commit to meeseeksmachine/sunpy that referenced this pull request Jan 30, 2025
@nabobalis
Copy link
Copy Markdown
Member

Thank you @parharti for the PR.

Thank you @ayshih for the review.

meeseeksmachine pushed a commit to meeseeksmachine/sunpy that referenced this pull request Jan 30, 2025
nabobalis pushed a commit that referenced this pull request Jan 30, 2025
nabobalis pushed a commit that referenced this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Affects the documentation. map Affects the map submodule Merge When CI Passes Hit that merge button when it's all green. Minor Change PR only needs one approval to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated GenericMap.measurement?

4 participants