mtiller / ModelicaBook

Source for my new Modelica Book
https://mbe.modelica.university
Other
95 stars 68 forks source link

Add experiment annotation to all examples that are meant to run #6

Open xogeny opened 10 years ago

xogeny commented 10 years ago

I should add experiment annotations to all the examples. However, when including these examples into the text of the book, I'll typically want to strip the annotations. So I'll need to find a simple way to strip annotations as part of the inclusion process.

xogeny commented 10 years ago

I think a better approach would be to use the specs.py script in conjunction with the code generation facilities for generating scripts, etc. to create a special package that extends the examples but adds an experiment annotation. This would keep the experiment annotation out of the source code used in the book but still make it easy for tools to test the models.