test_netpyne_loading.py 597 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python3
  2. """
  3. Enter one line description here.
  4. File:
  5. Copyright 2023 Ankur Sinha
  6. Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com>
  7. """
  8. from netpyne import sim, specs
  9. def load_netpyne():
  10. """Load a neuroml model into netpyne """
  11. nml2_file_name = "HL23Net_0.01.net.nml"
  12. simConfig = specs.SimConfig()
  13. netParams = sim.importNeuroML2(nml2_file_name, simConfig, simulate=False,
  14. analyze=True, return_net_params_also=True)
  15. return netParams, simConfig
  16. if __name__ == "__main__":
  17. np, sc = load_netpyne()
  18. print(np, sc)