You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Activate the virtual environment you just created.
26
26
27
27
Install dependencies into the virtual environment, especially [pyDataverse][].
28
28
29
-
pip install -r requirements.txt
29
+
pip3 install -r requirements.txt
30
30
31
31
Copy `dvconfig.py.sample` to `dvconfig.py` (see the `cp` command below) and add your API token (using your favorite text editor, which may not be `vi` as shown below). Note that the config file specifies which sample data will be created.
32
32
@@ -35,12 +35,29 @@ Copy `dvconfig.py.sample` to `dvconfig.py` (see the `cp` command below) and add
35
35
36
36
Note that the environment variable `$API_TOKEN` will override `api_token` in `dvconfig.py`.
37
37
38
+
## Adding a custom dataset with specific number of files
39
+
40
+
You can add a specific number of files to the dataset "Dataverse performance test dataset" with:
41
+
42
+
python create_sample_custom_dataset.py
43
+
44
+
You'll be prompted to specify the number of files you wish to create. The application will then generate the requested number of files, each one with the Dataverse logo in a randomly chosen color. These files will be in PNG format. It's important to complete this step before adding any data, as the dataset will otherwise be empty.
45
+
46
+
If you experience the `OSError: no library called "cairo-2" was found` error please declare the following env variable as documented [here](https://github.com/Kozea/CairoSVG/issues/392#issuecomment-1927435606
All of the steps above may be automated in a fresh installation of Dataverse on an EC2 instance on AWS by downloading [ec2-create-instance.sh][] and [main.yaml][]. Edit main.yml to set `dataverse.sampledata.enabled: true` and adjust any other settings to your liking, then execute the script with the config file like this:
0 commit comments