You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the shell plugin with the default sampler demo Python script in the if repository returns incorrectly formatted output data. Specifically, the outputs are double-indented and in the wrong order.
Expected Behaviour
After downloading and installing if and if-plugins and running npm run ie -- --manifest manifests/plugins/shell/success.yml --output manifests/outputs/test should yield an output yaml that looks as follows:
Notice that the output array has one additional field: energy: 1. The other fields are identical to what is found in inputs.
Actual Behaviour
After downloading and installing if and if-plugins and running npm run ie -- --manifest manifests/plugins/shell/success.yml --output manifests/outputs/test yields an output yaml that looks as follows:
Notice the double indented first element of outputs and the reordering of the output data that moves timestamp and duration out of indexes 0 and 1. timestamp should always be the zeroth element in each block of output data.
Steps to Reproduce
Download and install if:
git clone https://github.com/Green-Software-Foundation/if.git
npm i && npm i @grnsft/if-plugins
Run using the bundled example manifest manifests/plugins/shell/success.yml
npm run ie -- --manifest manifests/plugins/shell/success.yml -- output manifests/output/test
Examine contents of manifests/output/test.yml
Link to online environment
I am not providing an online environment because it was awkward to configure a remote IDE to spawn a shell and execute python code. I'll provide manifest details instead.
Description of the Error
Running the
shell
plugin with the defaultsampler
demo Python script in theif
repository returns incorrectly formatted output data. Specifically, the outputs are double-indented and in the wrong order.Expected Behaviour
After downloading and installing
if
andif-plugins
and runningnpm run ie -- --manifest manifests/plugins/shell/success.yml --output manifests/outputs/test
should yield an output yaml that looks as follows:Notice that the output array has one additional field:
energy: 1
. The other fields are identical to what is found ininputs
.Actual Behaviour
After downloading and installing
if
andif-plugins
and runningnpm run ie -- --manifest manifests/plugins/shell/success.yml --output manifests/outputs/test
yields an output yaml that looks as follows:Notice the double indented first element of
outputs
and the reordering of theoutput
data that movestimestamp
andduration
out of indexes 0 and 1.timestamp
should always be the zeroth element in each block ofoutput
data.Steps to Reproduce
Download and install
if
:Run using the bundled example manifest
manifests/plugins/shell/success.yml
Examine contents of
manifests/output/test.yml
Link to online environment
I am not providing an online environment because it was awkward to configure a remote IDE to spawn a shell and execute python code. I'll provide manifest details instead.
Manifest File That Generated the Error
Links to Any Additional Code
Runtime Info
Linux
Ubuntu 20.04.5 LTS
Node 21.4.0
The text was updated successfully, but these errors were encountered: