Skip to content

Commit f708c05

Browse files
authored
Feat 341 add derivatives (#346)
1 parent e7ee8b9 commit f708c05

11 files changed

+32
-39
lines changed

docs/examples/basic_upload.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
import requests
99
from aind_data_schema_models.modalities import Modality
1010

11-
# Note, the platform field is optional and will be deprecated. If adding a
12-
# platform please use aind-data-transfer-service <= 1.17.2
13-
from aind_data_schema_models.platforms import Platform
14-
11+
# Note, the platform field is optional and will be deprecated.
12+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1513
from aind_data_transfer_service.models.core import (
1614
SubmitJobRequestV2,
1715
Task,

docs/examples/behavior_videos_compression.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import requests
1010
from aind_data_schema_models.modalities import Modality
1111

12-
# Note, the platform field is optional and will be deprecated. If adding a
13-
# platform please use aind-data-transfer-service <= 1.17.2
14-
from aind_data_schema_models.platforms import Platform
15-
12+
# Note, the platform field is optional and will be deprecated.
13+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1614
from aind_data_transfer_service.models.core import (
1715
SubmitJobRequestV2,
1816
Task,

docs/examples/custom_codeocean_pipeline_settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import requests
1010
from aind_data_schema_models.modalities import Modality
1111

12-
# Note, the platform field is optional and will be deprecated. If adding a
13-
# platform please use aind-data-transfer-service <= 1.17.2
14-
from aind_data_schema_models.platforms import Platform
15-
12+
# Note, the platform field is optional and will be deprecated.
13+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1614
from aind_data_transfer_service.models.core import (
1715
SubmitJobRequestV2,
1816
Task,

docs/examples/custom_metadata_mapper_settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
import requests
1111
from aind_data_schema_models.modalities import Modality
12-
13-
# Note, the platform field is optional and will be deprecated. If adding a
14-
# platform please use aind-data-transfer-service <= 1.17.2
15-
from aind_data_schema_models.platforms import Platform
1612
from aind_metadata_mapper.bergamo.models import (
1713
JobSettings as BergamoSessionSettings,
1814
)
@@ -23,6 +19,8 @@
2319
SessionSettings,
2420
)
2521

22+
# Note, the platform field is optional and will be deprecated.
23+
from aind_data_transfer_service.configs.platforms_v1 import Platform
2624
from aind_data_transfer_service.models.core import (
2725
SubmitJobRequestV2,
2826
Task,

docs/examples/hcr_example.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
import requests
66
from aind_data_schema_models.modalities import Modality
77

8-
# Note, the platform field is optional and will be deprecated. If adding a
9-
# platform please use aind-data-transfer-service <= 1.17.2
10-
from aind_data_schema_models.platforms import Platform
11-
8+
# Note, the platform field is optional and will be deprecated.
9+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1210
from aind_data_transfer_service.models.core import (
1311
SubmitJobRequestV2,
1412
Task,

docs/examples/remove_source_folders.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import requests
1010
from aind_data_schema_models.modalities import Modality
1111

12-
# Note, the platform field is optional and will be deprecated. If adding a
13-
# platform please use aind-data-transfer-service <= 1.17.2
14-
from aind_data_schema_models.platforms import Platform
15-
12+
# Note, the platform field is optional and will be deprecated.
13+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1614
from aind_data_transfer_service.models.core import (
1715
SubmitJobRequestV2,
1816
Task,

docs/examples/skip_s3_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
import requests
1010
from aind_data_schema_models.modalities import Modality
1111

12-
# Note, the platform field is optional and will be deprecated. If adding a
13-
# platform please use aind-data-transfer-service <= 1.17.2
14-
from aind_data_schema_models.platforms import Platform
15-
12+
# Note, the platform field is optional and will be deprecated.
13+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1614
from aind_data_transfer_service.models.core import (
1715
SubmitJobRequestV2,
1816
Task,

docs/examples/upload_with_custom_slurm_settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
import requests
99
from aind_data_schema_models.modalities import Modality
1010

11-
# Note, the platform field is optional and will be deprecated. If adding a
12-
# platform please use aind-data-transfer-service <= 1.17.2
13-
from aind_data_schema_models.platforms import Platform
14-
11+
# Note, the platform field is optional and will be deprecated.
12+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1513
from aind_data_transfer_service.models.core import (
1614
SubmitJobRequestV2,
1715
Task,

docs/examples/upload_with_notification.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
import requests
99
from aind_data_schema_models.modalities import Modality
1010

11-
# Note, the platform field is optional and will be deprecated. If adding a
12-
# platform please use aind-data-transfer-service <= 1.17.2
13-
from aind_data_schema_models.platforms import Platform
14-
11+
# Note, the platform field is optional and will be deprecated.
12+
from aind_data_transfer_service.configs.platforms_v1 import Platform
1513
from aind_data_transfer_service.models.core import (
1614
SubmitJobRequestV2,
1715
Task,

docs/source/UserGuide.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ job_types.
3838
- **gather_preliminary_metadata**: Automatically gathers metadata for
3939
subject, procedures, and data_description. Will also gather metadata from
4040
aind-metadata-mapper if options are set.
41+
- copy_derivatives_folder: Can specificy a derivatives folder to upload.
42+
Set the job_settings like {"input_source": "path_to_folder"}.
4143
- **modality_transformation_settings**: This creates the settings for
4244
transforming the modality folders.
43-
- compress_data: This is a mapped task. Each Task in the
44-
modality_transformation_settings will run in parallel in a separate
45+
- compress_data/monitor_compress_data: This is a mapped task. Each Task in
46+
the modality_transformation_settings will run in parallel in a separate
4547
container here.
4648
- gather_final_metadata: Automatically generates a processing.json and
4749
metadata.nd.json file.
@@ -128,10 +130,13 @@ portal can accessed at
128130
- Optional fields
129131

130132
- platform: Standardized way of collecting and processing data
131-
(chosen from drop down menu)
133+
(chosen from drop down menu) Note: This field is deprecated and will be
134+
removed when aind-data-schema 2.0 is rolled out.
132135
- metadata_dir: If metadata files are pre-compiled and saved to a
133136
directory, you can add the Posix style path to the directory under
134137
this column
138+
- derivatives_dir: If a derivatives folder is available for upload, can be
139+
specified as a Posix style path to the directory under this column
135140
- s3_bucket: As default, data will be uploaded to a default bucket
136141
in S3 managed by AIND. Please reach out to the Scientific
137142
Computing department if you wish to upload to a different bucket.

0 commit comments

Comments
 (0)