dandi.py
upload_to_dandi(data_directory, dandiset_id, staging=True, working_directory=None, api_key=None, sync=False, existing='refresh')
¶
Upload NWB files to DANDI Archive
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_directory |
str
|
directory that contains source data |
required |
dandiset_id |
str
|
6-digit zero-padded string |
required |
staging |
bool
|
If true, use staging server. If false, use production server. |
True
|
working_directory |
str
|
Dir in which to create symlinked dandiset. Must have write permissions to this directory. Default is current directory. |
None
|
api_key |
str
|
Provide the DANDI API key if not already in an environmental variable DANDI_API_KEY |
None
|
sync |
str
|
If True, delete all files in archive that are not present in the local directory. |
False
|
existing |
str
|
see full description from |
'refresh'
|
Source code in element_interface/dandi.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |