{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Minimal usage example\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "import nnmt\n\n# instantiate network\nnetwork = nnmt.models.Basic('network_params.yaml')\n\n# calculate working point\nwp = nnmt.lif.exp.working_point(network)\n\n# print results\nprint('Working point:')\nprint(f\"mean input: {wp['mean_input']}\")\nprint(f\"std input: {wp['std_input']}\")\nprint(f\"firing rates: {wp['firing_rates']}\")\n\n# save results to h5 file\nnetwork.save('microcircuit_working_point.h5')"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.9.12"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}