load_nerve

nrv.ui.load_nerve(data: str | dict | NRV_class, extracel_context: bool = False, intracel_context: bool = False, rec_context: bool = False, **kwargs) nerve[source]

loads a nerve from a json file or a dictionary generated with NRV_class.save

Parameters:
  • data (str, dict, nrv_class) –

    data from which the object should be generated:

    • if str, data will be loaded from the corresponding json file

    • if dict, data will be loaded from a dictionnary

    • if nrv_class, same object will be returned

  • **kwargs – additionnal argument to use for the loading

Return type:

nerve | None