Code Monkey home page Code Monkey logo

Comments (9)

jarmarshall avatar jarmarshall commented on August 19, 2024

This is related to issue #23 - if we close that issue that may be sufficient... expert users can specify parameters directly, non-experts are assumed to want to use the minimal syntax possible.

On the other hand it would be a nice feature to add

from mumot.

jarmarshall avatar jarmarshall commented on August 19, 2024

Some functionality to do this in partially addressing issue #23 has now been added, within the MuMoTview base class - this might be co-opted, with some error checking (currently missing)

from mumot.

jarmarshall avatar jarmarshall commented on August 19, 2024

Ideally partial specification of parameters should be possible, which would not provide widgets for those in the corresponding controller - not sure if this works already

from mumot.

joefresna avatar joefresna commented on August 19, 2024

I think that experienced users should have the possibility to define the range and step of some widgets. For example the particle speed, or the system size, or the time of the simulation.

We should decide if the user can modify all of them through MuMoTdefault or as input.

Also, at the moment, using MuMoTdefault all rates would have the same initial value, step, and range. Not sure if this is ok.

from mumot.

joefresna avatar joefresna commented on August 19, 2024

Commit eef3100
adds the use of the initWidgets parameter for multiagent() and SSA() controllers.
This is only a first solution of initWidgets which could be modified/improved. It might be convenient to follow similar design (e.g. methods that use systemSize should include the desired range in paramNames and paramValues, ---or even better a dictionary #27---)

At the moment, the multiController supports initWidgets only for advanced options.

from mumot.

joefresna avatar joefresna commented on August 19, 2024

On multiagent() and SSA() the initWidgets parameter works. We need to decide if the same structure is good for all controllers.

from mumot.

jarmarshall avatar jarmarshall commented on August 19, 2024

@joefresna I am happy with the initWidgets solution it should be implemented as a private function that we can call from all controller-creating commands, with a few provisos:

  • something seems wrong with using initWidgets to specify a standard (e.g. rate) widget; the resulting slider cannot be changed (e.g. add 'mu':[3,0,5]to the dictionary on the test notebook, section SSA and multiagent tests
  • including the LaTeX escape character \\ should still lead to the widget being found properly (cf. example immediately above)
  • it looks like the defaults for unspecified widgets are taken from MuMoTdefaults? That's perfect.

from mumot.

jarmarshall avatar jarmarshall commented on August 19, 2024

Hasn't this been refactored to work for all controllers now?

from mumot.

joefresna avatar joefresna commented on August 19, 2024

Solved with commit 35d6b11

from mumot.

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.