Skip to content

Followup from #15121: broadcast in Attribute or Baseframe? #15415

Open

Description

@lpsinger

Looking at this code again, I'm indeed not sure it is the Attribute that should be doing the broadcasting -- I don't like that I have to write a comment that getattr(self, key) does the broadcasting, bad code smell! But I think that refactoring is probably best done separately from this PR.

Originally posted by @mhvk in #15121 (comment)

Activity

  1. lpsinger commented on Oct 3, 2023

    @lpsinger
    ContributorAuthor

    @mhvk, I'm happy with the code as it is, or with the refactoring that I originally did in #15121. What is your preference?

  2. mhvk commented on Oct 3, 2023

    @mhvk
    Contributor

    I'm also very happy with what we have now merged, and think this issue is a good reminder to think through a bit more clearly how Attribute should behave. It is really a question of what is more logical, the Attribute having to adjust its shape (bit weird, why should it care about the instance? though could see it as an "input parameter"), or the frame/instance dealing with it, but then having to know about where the attribute value is actually stored.

    For now, my vote is just to let this sit for a bit!

  3. changed the title [-]Followup from #15121[/-] [+]Followup from #15121: broadcast in Attribute or Baseframe?[/+] on Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions