Comments (9)
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.
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.
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.
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.
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.
On multiagent()
and SSA()
the initWidgets
parameter works. We need to decide if the same structure is good for all controllers.
from mumot.
@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.
Hasn't this been refactored to work for all controllers now?
from mumot.
Solved with commit 35d6b11
from mumot.
Related Issues (20)
- Automatic build and deploy process for releases not working HOT 1
- Test new release of pydstool HOT 1
- model2.showODEs(method='vanKampen') -> IndexError: list index out of range HOT 7
- Upgrade nbval when new version released HOT 1
- Incompat with Python 3.8: changing dictionary keys during iteration now results in a RuntimeError
- Configure logging via 'logging' module
- Do not suppress tracebacks when running 'test' notebooks via nbval HOT 3
- Multicontroller do not accept some of the plotting parameters that normal controllers support
- ANTLR runtime and generated code versions disagree: 4.8!=4.7.1 HOT 2
- Use of bare 'except:' is bad HOT 1
- MuMoTstochasticSimulationView should support the graphical keywords as other views do
- TkAgg error on MyBinder
- Only define versions in one place (using setuptools-scm) HOT 1
- runtime plot update for multiagent within multicontrollers disables runtime update
- Erroneous line breaks before some (not all) in-line LaTeX in Markdown cells (Safari only) HOT 6
- Intermittently hitting cell execution timeout of 120 seconds HOT 2
- Changing visualisation type of MuMoTstochasticSimulationViews through GUI causes plot deformations (squeezing)
- bifurcation() causes TypeError: cannot determine truth value of Relational HOT 2
- Add CFF file to make it easier for others to cite MuMoT HOT 1
- Controllers broken on MyBinder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mumot.