Store your files to Picsell.ia
Here we will learn how to store any file that you generate during your experiment on Picsell.ia so you and your team can access it anywhere, anytime.

The store method

Storing a file to Picsell.ia during an experiment is as simple as this :
1
from picsellia.client import Client
2
3
api_token = '4d388e237d10b8a19a93517ffbe7ea32ee7f4787'
4
project_token = '9c68b4ae-691d-4c3a-9972-8fe49ffb2799'
5
6
experiment = Client.Experiment(
7
api_token=api_token,
8
project_token=project_token
9
name='my_new_experiment'
10
)
11
experiment.store('config', 'pipeline.config')
Copied!
Now you can check that your file has nicely been uploaded on Picsell.ia.

Arguments

Here are the arguments of the store method :
  • name(string, default="") name of the file as displayed in Picsell.ia, use it to retrieve your file
  • path (string, default=None) the path to the file you want to upload
  • experiment_id (string, default=None) specify the id of your experiment if you have not initialized it earlier
  • zip (Boolean, default=False), set to True if you need to zip the file or even a directory before upload

The download method

If you need to retrieve and download an asset previously saved to Picsellia, you can use the download method
1
experiment.download('config')
Copied!
You can optionnaly set some parameters when calling this method
  • path, the name of the directory you want to download your file in
  • large, if the download fail, try setting this parameter to True to force multipart download
Last modified 9mo ago