Giter VIP home page Giter VIP logo

Comments (6)

relf avatar relf commented on June 23, 2024

You did not mention add_input and add_output at component level, though WhatsOpt could enforce it here too. Whats is the rationale? Does it let the component implementation use compatible units?

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

Actually, I don't need any change in these methods in my use case, as I use my own implementation of disciplines. But for sake of consistency, I guess you may declare units in these methods as well.

from whatsopt.

relf avatar relf commented on June 23, 2024

add_input and add_output are in the setup in the base files. Do you override this method when you use your implementations? If not how does it work if you use compatible but different units than the ones specified by WhatsOpt in the setup?

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

add_input and add_output are in the setup in the base files. Do you override this method when you use your implementations?

I override the create_*() methods to use my own implementations of the disciplines, that do not inherit from the base classes. Therefore, the generated base classes for these disciplines are not used. Of course, I know that in such case, I am responsible for keeping my inputs and outputs consistent.

If not how does it work if you use compatible but different units than the ones specified by WhatsOpt in the setup?

Currently, it does not work, that's the point 😁. But once the inputs will have been declared with proper units, OpenMDAO will gracefully do the conversion, and then, it will be great!

from whatsopt.

relf avatar relf commented on June 23, 2024

Ok, I will also add units at component level (it was my concern in the first place it gets in the way if I do). And you can test right now as the feature is deployed.

from whatsopt.

christophe-david avatar christophe-david commented on June 23, 2024

Many thanks. I will test that very soon!

from whatsopt.

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.