.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_01_generate_phantom.py: Example 01: Generate a phantom ============================== .. code-block:: default import foam_ct_phantom random_seed = 12345 # Note that nspheres_per_unit is set to a low value to reduce the computation time here. # The default value is 100000. foam_ct_phantom.FoamPhantom.generate('test_phantom.h5',random_seed,nspheres_per_unit=1000) .. _sphx_glr_download_auto_examples_01_generate_phantom.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: 01_generate_phantom.py <01_generate_phantom.py>` .. container:: sphx-glr-download :download:`Download Jupyter notebook: 01_generate_phantom.ipynb <01_generate_phantom.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_