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

GrouperView.join() no longer exists, use sharey() instead #26

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

AdamOrmondroyd
Copy link
Collaborator

Description

GrouperView no longer has a .join() method, so use sharey() instead. https://stackoverflow.com/questions/77418896/attributeerror-grouperview-object-has-no-attribute-join

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@AdamOrmondroyd AdamOrmondroyd mentioned this pull request Jan 27, 2025
11 tasks
fgivenx/mass.py Outdated Show resolved Hide resolved
@@ -98,12 +98,10 @@ def plot(x, y, z, ax=None, **kwargs):

# Rasterize contours (the rest of the figure stays in vector format)
if rasterize_contours:
for c in cbar.collections:
c.set_rasterized(True)
cbar.set_rasterized(True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

getting warnings this hasn't been applied

Copy link
Collaborator

@williamjameshandley williamjameshandley left a comment

Choose a reason for hiding this comment

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

Thank you so much @AdamOrmondroyd for sorting all this out. A lot of people use this code (particularly in REACH), so keeping it up to date is really valuable.

Please squash and merge.

@AdamOrmondroyd
Copy link
Collaborator Author

Are you sure you're happy with the rasterizing bit?

@AdamOrmondroyd
Copy link
Collaborator Author

Sorry, realised I wasn't happy with using [0] instead of .squeeze(). Feel free to revert if your opinion differs

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