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

Exposed the invert_dim parameter #391

Merged
merged 7 commits into from
Oct 24, 2024
Merged

Exposed the invert_dim parameter #391

merged 7 commits into from
Oct 24, 2024

Conversation

IgorTatarnikov
Copy link
Member

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
The invert_dim parameter for loading data into Neuron actors was hard coded to be True.

What does this PR do?
Exposes the invert_dim parameter in the Neuron constructor, setting the default to be True

References

#181

How has this PR been tested?

Visual inspection, all existing tests pass.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

No.

Checklist:

  • The code has been tested locally
  • The code has been formatted with pre-commit

@IgorTatarnikov IgorTatarnikov marked this pull request as ready for review October 22, 2024 15:11
@IgorTatarnikov IgorTatarnikov requested a review from a team October 22, 2024 15:11
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 86.51%. Comparing base (02ea8d7) to head (9fc5234).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
..._specific/allen_brain_atlas/gene_expression/api.py 69.23% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #391      +/-   ##
==========================================
- Coverage   86.71%   86.51%   -0.20%     
==========================================
  Files          27       27              
  Lines        1219     1231      +12     
==========================================
+ Hits         1057     1065       +8     
- Misses        162      166       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IgorTatarnikov
Copy link
Member Author

IgorTatarnikov commented Oct 22, 2024

Tests seem to be failing due to the fact that GeneExpressionAPI can't connect to the Allen API.

Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

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

LGTM, just one tiny comment.

@@ -50,6 +51,7 @@ def __init__(
:param color: str,
:param neuron_radius: float, radius of axon/dendrites
:param soma_radius: float, radius of soma
:param invert_dims: bool, invert dimensions of neuron
Copy link
Member

Choose a reason for hiding this comment

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

Could this docstring be expanded? It's not immediately obvious what "inverting dimensions" means.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated! Hopefully, that's a bit clearer.

@adamltyson adamltyson merged commit 836ecee into main Oct 24, 2024
11 of 13 checks passed
@adamltyson adamltyson deleted the expose-invert-dim branch October 24, 2024 10:16
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