Skip to content

cov_struct.Nested AttributeError 'vcomp_coeff' #3668

Closed

Description

@jbrockmendel

Implemented a smoketest locally to hit genmod.cov_struct.Nested.summary, got:

    for k in range(len(self.vcomp_coeff)):
AttributeError: 'Nested' object has no attribute 'vcomp_coeff'

It looks like vcomp_coeff gets set in update but not __init__. This test happens to call summary immediately after instantiation, so breaks. Seems like the fix is to either a) set vcomp_coeff={} in __init__ or b) prevent early calls to summary. I'll circle back to this in a few days if no one else has gotten to it.

Activity

  1. josef-pkt commented on May 15, 2017

    @josef-pkt
    Member

    AFAIU:
    This is currently only used a part of GEE and not designed for standalone use (*). Fine if there are obvious fixes, but I'm not in favor of raising intentional exception for internal use as in b) prevent early calls to summary (also given that there is already an exception that is at least partially informative)

    Also, unless you put code in a PR, it is useful to have a full example attached to the issue.

    (*) I tried once to (mis)use the cov_struct for other examples outside of GEE, but they are currently very tightly integrated with the GEE usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions