-
Notifications
You must be signed in to change notification settings - Fork 5
Upload Data
There are currently two ways to upload the data:
This uses the API to send a POST call with your username and API key.
The webpage has a modal that allows authenticated Django users to choose a file to upload, however it will timeout for anything larger than 500 records, so chunk the files first.
If using the upload helper, you will need to chunk the files into a size small enough to upload in the 3-minute window the server allows before it times out. There is a convenience script in the top level called chunk_sam_param_tables.py
that takes a single argument, the file to chunk, and returns enumerated files that are chunks of the original file. You can also pass an argument to set the chunking size which defaults to 500 records. Then you can use the upload link on the navbar after logging in first, select the type of parameter and choose the file. Alternately you can use the API or the Django shell to upload records by writing code.