view statement will trigger display for all models in a group
Using the view
statement within a session running a model which belongs to a group (generated via vary
) will trigger the display of the parameters of view
of all models in the group, instead of just displaying those of the model in the foreground (loaded UUID).
This behaviour can be reproduced with the following example:
$~> texts session -r
Input > pwr(x,y) = x**y
Input > ser_a = (num: 1, 2, 3, 4)
Input > p = 1
Input > ser_p = (pow: p, p, p, p)
Input > print(ser_p)
Output > (pow: 1, 1, 1, 1)
Input > pow_ser = map(pwr, ser_a, ser_p)
Input >
Input > vary ((p: 2, 3, 4, 5, 6))
Input > %uuid
Output > 'uuid_model_p_1' ('uuid_model_p_1', 'uuid_model_p_2', ..., 'uuid_model_p_6')
Input >
Input > view lineplot (pow_ser, ser_a)
The view
statement will trigger the consecutive display of the lineplots of all six models, each one after manually closing the display window of the previous.
This behaviour occurs with view lineplot
, view scatterplot
, and view eos
.
The view structure
statement is also affected, but the behaviour is slightly different.
For example, by using the vary
method to create a model group with different Structure
objects (eg. vary ((struc: Structure from file 'my_file1', ..., Structure from file 'my_fileN'
).
In this case view structure
will simultaneously open visualization windows for all variations of struc
in the model group.
Ideally, only the ase window for the active model in the foreground shoul be opened.