This example shows how to code a spectrum in Python directly in the XML file.

0.

         1000. 100. 1.22 0.
         1000.
         0.314159265358979323846264338327950288419716
         32

Python::ThinDisk inherits from ThinDisk, we can set the usual parameters: 3.

We could write a python module in a separate file, say "gyoto_sample_spectra.py", and use the "Module" entity to load it:

Alternatively, we can put the Python code inline using the "InlineModule" entity. Common indentation will be removed so we don't have to flush everything left . class ThinDisk: def emission(self, nuem, dsem, cph, co): return dsem

Since there is only one class in the module, we do not need to specify the class name here:

0.