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

Enh/attachments #20

Merged
merged 32 commits into from
Jul 18, 2024
Merged

Conversation

mochic
Copy link
Collaborator

@mochic mochic commented Jul 11, 2024

Adds support for attachments.


def __init__(self, *args, preferred_unit=None):
"""Set list of acceptable units from args, and preferred_unit"""
self.units = args
Copy link
Contributor

Choose a reason for hiding this comment

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

I get a type warning. args is a tuple, but it's expecting a list.

Copy link
Contributor

@jtyoung84 jtyoung84 left a comment

Choose a reason for hiding this comment

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

  • I'd recommend separating the doc tests into a separate PR. I get unusual behavior trying to run them locally.
  • An error is raised when I try to fetch an attachment that doesn't exist. It'd be nice if I got something similar to a 404 response.
  • My IDE highlights a few warnings about types, static methods, and accessing protected attributes

@mochic
Copy link
Collaborator Author

mochic commented Jul 18, 2024

fetching attachment that doesn't exist has been resolved in d621742

@jtyoung84 jtyoung84 merged commit 40630df into AllenNeuralDynamics:main Jul 18, 2024
3 checks passed
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.

3 participants