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

fix metadata key #255

Merged
merged 1 commit into from
Mar 13, 2024
Merged

fix metadata key #255

merged 1 commit into from
Mar 13, 2024

Conversation

alessandrofelder
Copy link
Member

@alessandrofelder alessandrofelder commented Mar 12, 2024

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
metadata("brainglobe-atlasapi")["Author"] was previously returning None because the key does not exist.

What does this PR do?
Replaces the metadata key with "Author-email" key, which does exist in the package metadata. This fix is purely based on empirical inspecting of the keys returned by metadata("brainglobe-atlasapi").

References

Closes #254

How has this PR been tested?

Local installation of this fixes the brainglobe-utils tests run in an environment with both [dev] and [napari] optional dependencies install.

Is this a breaking change?

No

Does this PR require an update to the documentation?

No

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@alessandrofelder alessandrofelder self-assigned this Mar 12, 2024
@alessandrofelder alessandrofelder marked this pull request as ready for review March 12, 2024 23:22
Copy link
Contributor

@K-Meech K-Meech left a comment

Choose a reason for hiding this comment

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

Thanks @alessandrofelder - looks good to me!

@alessandrofelder alessandrofelder merged commit 608a669 into main Mar 13, 2024
8 checks passed
@alessandrofelder alessandrofelder deleted the fix-metadata-key branch March 13, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Different results running tests via pytest or tox locally
2 participants