File does not exist: 'schema.json' after installing bonsai.sgen #2410
-
Dear Bonsai community,
However, when I moved to the bonsai folder and execute the rest of the code
It seems that I need to have a schema.json. Since I have a proper workflow and just want to update the environmental variables, what would be the most efficient way to create such a schema.json (note: I have passed environmental variables with CLI, but I would like to ensure the updated variables are saved after the experiment so I reckon using Bonsai.sgen is the best approach to this issue?!)? Last but not least, if none of the nodes I use is customised nodes, do I still need to add the necessary package references to my Extensions.csproj file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, you MUST provide a schema of your experiment in order to build the csharp code necessary to load your settings. Bonsai cant (yet at least) guess what your experiment settings are. I find this https://bonsai-rx.org/sgen/articles/pydantic-usage.html to be the easiest way to derive the json-schema for your experiment.
This is covered in the docs too under the tip of this section: https://bonsai-rx.org/sgen/articles/pydantic-usage.html |
Beta Was this translation helpful? Give feedback.
Yes, you MUST provide a schema of your experiment in order to build the csharp code necessary to load your settings. Bonsai cant (yet at least) guess what your experiment settings are. I find this https://bonsai-rx.org/sgen/articles/pydantic-usage.html to be the easiest way to derive the json-schema for your experiment.
This is covered in the docs too under the tip of this section: https://bonsai-rx.org/sgen/articles/pydantic-usage.html