Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KESimulation needs some operators on TimeSeries to manipulate the data for plotting #365

Open
btmanh opened this issue Sep 29, 2021 · 1 comment
Assignees

Comments

@btmanh
Copy link
Collaborator

btmanh commented Sep 29, 2021

The DSL needs some wrap-in functions to manipulating the simulation output (TimeSeries) before plotting.
For example: sum, log, sqrt, etc.
An example which can be executed with the old version:

Visualization MosquitoViz diagram
	for: MosquitoSim;
	data: $(I sqrt);
	xLabel: 'Time (days)';
	yLabel: 'sqrt(I by species)'.

the data will be collected from the output of simulation for all I by species, the sqrt will be applied on each timeseries before plotting all I by species (so if we have 3 species, we will have 3 curves).

I think we need some basic operators provided for the simulation results so that the DSL can use them.

@btmanh btmanh changed the title KEChart needs some operators on TimeSeries to manipulate the data for plotting KESimulation needs some operators on TimeSeries to manipulate the data for plotting Sep 29, 2021
@YvanGuifo
Copy link
Collaborator

I see that the two affected classes of the DSL-Internal tag are simulation and visualization.

More precisely,

  • In the simulation class, theexportTimeSeriesOutputsAt: anIdentifier method allows us to export timeseries resulting from the simulation.
  • In the visualization method, the data: anArray method lists a number of functions defined in a collection.

I may give the impression of creating a repetition.
Is the idea to implement the functions sqrt, log, etc so that we can manipulate them with the timeseries produced during the simulations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants