Skip to content

Commit 401067b

Browse files
committed
Merge branch 'develop' into v4.8.0-rc-dev
2 parents 061bfef + 9fdc692 commit 401067b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+471
-403
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
path: |
8484
${{ steps.get-dependencies.outputs.site_packages_loc }}
8585
${{ steps.get-dependencies.outputs.site_bin_dir }}
86-
key: ${{ runner.os }}-${{ matrix.python }}-build-${{ env.cache-name }}-${{ hashFiles('setup.py') }}-v21
86+
key: ${{ runner.os }}-${{ matrix.python }}-build-${{ env.cache-name }}-${{ hashFiles('setup.py') }}-v22
8787

8888
- name: Install py-dependencies
8989
if: steps.cache-dependencies.outputs.cache-hit != 'true'

Pipfile.lock

Lines changed: 316 additions & 333 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/explanations/manifest_tsv.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,34 @@ Any additional columns will be added as annotations.
1515

1616
### Required fields:
1717

18-
| Field | Meaning | Example |
19-
| --- | --- | --- |
20-
| path | local file path or URL | /path/to/local/file.txt |
21-
| parent | synapse id | syn1235 |
18+
| Field | Meaning | Example |
19+
|--------|------------------------|-------------------------|
20+
| path | local file path or URL | /path/to/local/file.txt |
21+
| parent | synapse id | syn1235 |
2222

2323
### Common fields:
2424

25-
| Field | Meaning | Example |
26-
| --- | --- | --- |
27-
| name | name of file in Synapse | Example_file |
28-
| forceVersion | whether to update version | False |
25+
| Field | Meaning | Example |
26+
|--------------|---------------------------|--------------|
27+
| name | name of file in Synapse | Example_file |
28+
| forceVersion | whether to update version | False |
2929

3030
### Activity/Provenance fields:
3131

3232
Each of these are individual examples and is what you would find in a row in each of these columns. To clarify, "syn1235;/path/to_local/file.txt" below states that you would like both "syn1234" and "/path/to_local/file.txt" added as items used to generate a file. You can also specify one item by specifying "syn1234"
3333

34-
| Field | Meaning | Example |
35-
| --- | --- | --- |
36-
| used | List of items used to generate file | "syn1235;/path/to_local/file.txt" |
37-
| executed | List of items executed | "https://github.org/;/path/to_local/code.py" |
38-
| activityName | Name of activity in provenance | "Ran normalization" |
39-
| activityDescription | Text description on what was done | "Ran algorithm xyx with parameters..." |
34+
| Field | Meaning | Example |
35+
|---------------------|-------------------------------------|----------------------------------------------|
36+
| used | List of items used to generate file | "syn1235;/path/to_local/file.txt" |
37+
| executed | List of items executed | "https://github.org/;/path/to_local/code.py" |
38+
| activityName | Name of activity in provenance | "Ran normalization" |
39+
| activityDescription | Text description on what was done | "Ran algorithm xyx with parameters..." |
4040

4141
See:
4242

4343
- [Activity][synapseclient.Activity]
4444

45+
[](){ #manifest-tsv-explanation-annotations }
4546
### Annotations:
4647

4748
Any columns that are not in the reserved names described above will be interpreted as annotations of the file
@@ -54,6 +55,8 @@ Adding 4 annotations to each row:
5455
| /path/file2.txt | syn12433 | baz | 2.71 | [value_1,value_2] | [1,2,3] | [test 123, test 456]
5556
| /path/file3.txt | syn12455 | zzz | 3.52 | [value_3,value_4] | [42, 56, 77] | [a single annotation]
5657

58+
59+
[](){ #manifest-tsv-explanation-multiple-annotations }
5760
#### Multiple values of annotations per key
5861
Using multiple values for a single annotation should be used sparingly as it makes it more
5962
difficult for you to manage the data. However, it is supported.
@@ -66,22 +69,22 @@ double quotes.
6669

6770
This is an annotation with 2 values:
6871

69-
| path | parent | annot1 |
70-
| --- | --- | --- |
72+
| path | parent | annot1 |
73+
|-----------------|---------|-------------------------------------------------|
7174
| /path/file1.txt | syn1243 | [my first annotation, "my, second, annotation"] |
7275

7376

7477
This is an annotation with 4 value:
7578

76-
| path | parent | annot1 |
77-
| --- | --- | --- |
79+
| path | parent | annot1 |
80+
|-----------------|---------|-----------------------------------------------|
7881
| /path/file1.txt | syn1243 | [my first annotation, my, second, annotation] |
7982

8083

8184
This is an annotation with 1 value:
8285

83-
| path | parent | annot1 |
84-
| --- | --- | --- |
86+
| path | parent | annot1 |
87+
|-----------------|---------|----------------------------|
8588
| /path/file1.txt | syn1243 | my, sentence, with, commas |
8689

8790

@@ -91,18 +94,20 @@ See:
9194

9295
### Other optional fields:
9396

94-
| Field | Meaning | Example |
95-
| --- | --- | --- |
96-
| synapseStore | Boolean describing whether to upload files | True |
97-
| contentType | content type of file to overload defaults | text/html |
97+
| Field | Meaning | Example |
98+
|--------------|--------------------------------------------|-----------|
99+
| synapseStore | Boolean describing whether to upload files | True |
100+
| contentType | content type of file to overload defaults | text/html |
101+
98102

103+
[](){ #manifest-tsv-explanation-example-file }
99104
### Example manifest file
100105

101-
| path | parent | annot1 | annot2 | collection_date | used | executed |
102-
| --- | --- | --- | --- | --- | --- | --- |
103-
| /path/file1.txt | syn1243 | "bar" | 3.1415 | 2023-12-04 07:00:00+00:00 | "syn124;/path/file2.txt" | "https://github.org/foo/bar" |
104-
| /path/file2.txt | syn12433 | "baz" | 2.71 | 2001-01-01 15:00:00+07:00 | "" | "https://github.org/foo/baz" |
105-
| /path/file3.txt | syn12455 | "zzz" | 3.52 | 2023-12-04T07:00:00Z | "" | "https://github.org/foo/zzz" |
106+
| path | parent | annot1 | annot2 | collection_date | used | executed |
107+
|-----------------|----------|--------|--------|---------------------------|--------------------------|------------------------------|
108+
| /path/file1.txt | syn1243 | "bar" | 3.1415 | 2023-12-04 07:00:00+00:00 | "syn124;/path/file2.txt" | "https://github.org/foo/bar" |
109+
| /path/file2.txt | syn12433 | "baz" | 2.71 | 2001-01-01 15:00:00+07:00 | "" | "https://github.org/foo/baz" |
110+
| /path/file3.txt | syn12455 | "zzz" | 3.52 | 2023-12-04T07:00:00Z | "" | "https://github.org/foo/zzz" |
106111

107112
### Dates in the manifest file
108113
Dates within the manifest file will always be written as [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format in UTC without milliseconds. For example: `2023-12-20T16:55:08Z`.

docs/news.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ stored in the `~/.synapseConfig` file.
165165
## 4.3.0 (2024-05-30)
166166
### Highlights
167167
- **New tutorial:**
168-
- [Uploading data in bulk](../tutorials/python/upload_data_in_bulk)
168+
- [Uploading data in bulk](tutorials/python/upload_data_in_bulk.md)
169169
is our newest tutorial. It covers the basics of working with manifest files to manage synapse projects.
170170
- **Updates to syncToSynapse:**
171171
- The `syncToSynapse` function has been refactored to improve performance and
@@ -209,7 +209,7 @@ stored in the `~/.synapseConfig` file.
209209

210210
### Highlights
211211
- **New Downloading Data in Bulk Tutorial**
212-
- See [Downloading data in bulk tutorial](https://python-docs.synapse.org/tutorials/python/download_data_in_bulk/) for more details on downloading data in bulk from Synapse.
212+
- See [Downloading data in bulk tutorial][tutorial-downloading-data-in-bulk] for more details on downloading data in bulk from Synapse.
213213
- **Downloading Files Troubleshooting Improvement**
214214
- Improved error logging for when users are downloading files using commands like `get-download-list` from Synapse.
215215

@@ -264,27 +264,27 @@ stored in the `~/.synapseConfig` file.
264264

265265
- **Only authentication through Personal Access Token**
266266
**(aka: Authentication bearer token) is supported**. Review the
267-
[Authentication document](https://python-docs.synapse.org/tutorials/authentication/)
267+
[Authentication document][tutorial-authentication]
268268
for information on setting up your usage of a Personal Access Token to authenticate
269269
with Synapse.
270270
- **Date type Annotations on Synapse entities are now timezone aware**. Review our
271-
[reference documentation for Annotations](https://python-docs.synapse.org/reference/annotations/).
271+
[reference documentation for Annotations][synapseclient.annotations].
272272
The [`pytz` package](https://pypi.org/project/pytz/) is recommended if you regularly
273273
work with data across time zones.
274274
- If you do not set the `tzinfo` field on a date or datetime instance we will use the
275275
timezone of the machine where the code is executing.
276276
- If you are using the
277-
[Manifest TSV](https://python-docs.synapse.org/explanations/manifest_tsv/#annotations)
277+
[Manifest TSV][manifest-tsv-explanation-annotations]
278278
for bulk actions on your projects you'll now see that
279279
[synapseutils.sync.syncFromSynapse][] will store dates as `YYYY-MM-DDTHH:MM:SSZ`.
280280
Review our documentation for an
281-
[example manifest file](https://python-docs.synapse.org/explanations/manifest_tsv/#example-manifest-file).
281+
[example manifest file][manifest-tsv-explanation-example-file].
282282
Additionally, if you'd like to upload an annotation in a specific timezone please
283283
make sure that it is in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).
284284
If you do not specify a timezone it is assumed to use the timezone of the machine
285285
where the code is executing.
286286
- **Support for annotations with multiple values through the**
287-
[**Manifest TSV**](https://python-docs.synapse.org/explanations/manifest_tsv/#multiple-values-of-annotations-per-key)
287+
[**Manifest TSV**][manifest-tsv-explanation-multiple-annotations]
288288
with the usage of a comma delimited bracket wrapped list. Any manifest files wishing
289289
to take advantage of multi-value annotations need to match this format. Examples:
290290
- `["Annotation, with a comma", another annotation]`
@@ -295,7 +295,7 @@ stored in the `~/.synapseConfig` file.
295295
that you'll
296296
[provide the Data Processing and Engineering team feedback on areas we can improve](https://sagebionetworks.jira.com/servicedesk/customer/portal/5/group/7).
297297
- Expansion of the available Python Tutorials can be found
298-
[starting here](https://python-docs.synapse.org/tutorials/python_client/).
298+
[starting here][tutorials-home].
299299

300300
### Bug Fixes
301301
- \[[SYNPY-1357](https://sagebionetworks.jira.com/browse/SYNPY-1357)\] - Manifest does not support annotations with multiple values
@@ -967,7 +967,7 @@ stored in the `~/.synapseConfig` file.
967967
syn = synapseclient.Synapse(cache_root_dir=<directory path>)
968968
```
969969

970-
- A [helper method](index.html#synapseclient.Synapse.is_certified) on
970+
- A [helper method][synapseclient.Synapse.is_certified] on
971971
the Synapse object has been added to enable obtaining the Synapse
972972
certification quiz status of a user.
973973

@@ -1023,7 +1023,7 @@ stored in the `~/.synapseConfig` file.
10231023
- This version addresses an issue with downloads being retried
10241024
unsuccessfully after encountering certain types of errors.
10251025
- A
1026-
[create_snapshot_version](index.html#synapseclient.Synapse.create_snapshot_version)
1026+
[create_snapshot_version][synapseclient.Synapse.create_snapshot_version]
10271027
function is added for making table and view snapshots.
10281028

10291029
### Bug Fixes
@@ -1050,9 +1050,9 @@ stored in the `~/.synapseConfig` file.
10501050
### Highlights
10511051

10521052
- Files that are part of
1053-
[syncFromSynapse](https://python-docs.synapse.org/build/html/synapseutils.html#synapseutils.sync.syncFromSynapse)
1053+
[syncFromSynapse][synapseutils.sync.syncFromSynapse]
10541054
and
1055-
[syncToSynapse](https://python-docs.synapse.org/build/html/synapseutils.html#synapseutils.sync.syncToSynapse)
1055+
[syncToSynapse][synapseutils.sync.syncToSynapse]
10561056
operations (`synapse get -r` and `synapse sync` in the command line
10571057
client, respectively) are transferred in in parallel threads rather
10581058
than serially, substantially improving the performance of these
@@ -1098,7 +1098,7 @@ stored in the `~/.synapseConfig` file.
10981098
### Highlights
10991099

11001100
- This version includes a performance improvement for
1101-
[syncFromSynapse](https://python-docs.synapse.org/build/html/synapseutils.html#synapseutils.sync.syncFromSynapse)
1101+
[syncFromSynapse][synapseutils.sync.syncFromSynapse]
11021102
downloads of deep folder hierarchies to local filesystem locations
11031103
outside of the [Synapse
11041104
cache](https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html#DownloadingDataProgrammatically-DownloadingFiles).
@@ -1879,8 +1879,7 @@ Below are the full list of issues addressed by this release:
18791879
Release 1.7 is a large bugfix release with several new features. The
18801880
main ones include:
18811881

1882-
- We have expanded the [synapseutils
1883-
packages](python-docs.synapse.org/build/html/synapseutils.html#module-synapseutils)
1882+
- We have expanded the [synapseutils packages][synapseutils]
18841883
to add the ability to:
18851884

18861885
> - Bulk upload files to synapse (synapseutils.syncToSynapse).

docs/reference/experimental/async/activity.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API Reference
88

9+
[](){ #activity-reference-async }
910
::: synapseclient.models.Activity
1011
options:
1112
members:
@@ -14,11 +15,13 @@ at your own risk.
1415
- delete_async
1516
- disassociate_from_entity_async
1617
---
18+
[](){ #used-entity-reference-async }
1719
::: synapseclient.models.UsedEntity
1820
options:
1921
filters:
2022
- "!"
2123
---
24+
[](){ #used-url-reference-async }
2225
::: synapseclient.models.UsedURL
2326
options:
2427
filters:

docs/reference/experimental/async/agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API reference
88

9+
[](){ #agent-reference-async }
910
::: synapseclient.models.Agent
1011
options:
1112
members:
@@ -16,6 +17,7 @@ at your own risk.
1617
- prompt_async
1718
- get_chat_history
1819
---
20+
[](){ #agent-session-reference-async }
1921
::: synapseclient.models.AgentSession
2022
options:
2123
members:
@@ -24,6 +26,7 @@ at your own risk.
2426
- update_async
2527
- prompt_async
2628
---
29+
[](){ #agent-prompt-reference-async }
2730
::: synapseclient.models.AgentPrompt
2831
options:
2932
inherited_members: true

docs/reference/experimental/async/dataset.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API reference
88

9+
[](){ #dataset-reference-async }
910
::: synapseclient.models.Dataset
1011
options:
1112
inherited_members: true
@@ -27,5 +28,6 @@ at your own risk.
2728
- get_acl
2829
- set_permissions
2930
---
31+
[](){ #entity-ref-reference-async }
3032
::: synapseclient.models.EntityRef
3133
---

docs/reference/experimental/async/dataset_collection.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API reference
88

9+
[](){ #dataset-collection-reference-async }
910
::: synapseclient.models.DatasetCollection
1011
options:
1112
inherited_members: true
@@ -27,5 +28,6 @@ at your own risk.
2728
- get_acl
2829
- set_permissions
2930
---
31+
[](){ #entity-ref-dataset-collection-reference-async }
3032
::: synapseclient.models.EntityRef
3133
---

docs/reference/experimental/async/entityview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API reference
88

9+
[](){ #entityview-reference-async }
910
::: synapseclient.models.EntityView
1011
options:
1112
inherited_members: true
@@ -24,3 +25,7 @@ at your own risk.
2425
- get_permissions_async
2526
- set_permissions_async
2627
---
28+
29+
[](){ #view-type-mask-reference }
30+
::: synapseclient.api.ViewTypeMask
31+
---

docs/reference/experimental/async/file.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ at your own risk.
66

77
## API Reference
88

9+
[](){ #file-reference-async }
910
::: synapseclient.models.File
1011
options:
1112
inherited_members: true
@@ -21,6 +22,7 @@ at your own risk.
2122
- get_acl_async
2223
- set_permissions_async
2324
---
25+
[](){ #filehandle-reference-async }
2426
::: synapseclient.models.file.FileHandle
2527
options:
2628
filters:

0 commit comments

Comments
 (0)