.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/minimal_usage_example/minimal_usage_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. 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_minimal_usage_example_minimal_usage_example.py: Minimal usage example ===================== .. GENERATED FROM PYTHON SOURCE LINES 5-22 .. code-block:: default import nnmt # instantiate network network = nnmt.models.Basic('network_params.yaml') # calculate working point wp = nnmt.lif.exp.working_point(network) # print results print('Working point:') print(f"mean input: {wp['mean_input']}") print(f"std input: {wp['std_input']}") print(f"firing rates: {wp['firing_rates']}") # save results to h5 file network.save('microcircuit_working_point.h5') .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_minimal_usage_example_minimal_usage_example.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: minimal_usage_example.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: minimal_usage_example.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_