multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

Feature request: inclusion of output from a code as the value for a variable in a YMMSL file #295

Open DavidPCoster opened 5 months ago

DavidPCoster commented 5 months ago

It would be very useful if one could use the output from a code as the value for a variable in a YMMSL file.

Suggestion for format: code_name any arguments

I think it would make sense to do this in the environment of the muscle_manager interpreting the YMMSL files.

The configuration.log would show the instantiated value.

One immediate example that comes to my mind would be to provide an auto-incrementing run number.

As an example, I have a script that

the program will take the latest value from ~/.shots/$DEVICE/$SHOT/run,

increment it by one, store the new value and return it

and would be called in a typical use case as

settings: run: next_run test 92436

This would remove the problem of overwriting an existing run.