nwb.py
element_lab_to_nwb_dict(lab_key=None, project_key=None, protocol_key=None)
¶
Generate a NWB-compliant dictionary object for lab metadata
Generate a dictionary object containing all relevant lab information used when generating an NWB file at the session level. All parameters optional, but should only specify one of respective type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lab_key |
dict
|
Key specifying one entry in element_lab.lab.Lab |
None
|
project_key |
dict
|
Key specifying one entry in element_lab.lab.Project |
None
|
protocol_key |
dict
|
Key specifying one entry in element_lab.lab.Protocol |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Dictionary with NWB parameters. |
Source code in element_lab/export/nwb.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |