Giter Club home page Giter Club logo

Comments (7)

alanlujan91 avatar alanlujan91 commented on May 28, 2024

because IndShockLabeledType needs to import from IndShockConsumerType and PerfForesightLabeled, and I thought this was a good way to avoid multiple inheritance, which I still don't understand very well.

If there is a better way to do it, then we should do that!

from hark.

mnwhite avatar mnwhite commented on May 28, 2024

There's a better way. I am utterly baffled at how this class manages to initialize and run. It needs income shock parameters to be passed to it... but they're not in its default dictionary!

from hark.

alanlujan91 avatar alanlujan91 commented on May 28, 2024

they are in the parent's default dictionary!

from hark.

mnwhite avatar mnwhite commented on May 28, 2024

They are not! This class inherits from IndShockConsumerType, but uses the perfect foresight dictionary as its default:

image

I'll check in a moment, but I suspect the explanation is that all of the tests are using a custom dictionary, not the default one.

from hark.

alanlujan91 avatar alanlujan91 commented on May 28, 2024

What is the default dictionary of IndShockConsumerType?

image

from hark.

mnwhite avatar mnwhite commented on May 28, 2024

Ok, I see now. Hopefully I can work it out.

from hark.

mnwhite avatar mnwhite commented on May 28, 2024

This is now fixed in #1410 by manually re-adding the (unexpectedly needed) constructors. It's wonky because update is being run multiple times during initialization. In the future, I think we should work toward update or construct not being called automatically during initialization, and have the user do it manually.

from hark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.