From 61b349b3248425e2d1e29b3c3fdf632d18c893fc Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:35:12 -0700 Subject: [PATCH] feat: adds input data mount field (#116) * feat: adds input data mount field --- README.md | 1 + pyproject.toml | 2 +- .../configs/job_upload_template.py | 4 ++++ .../templates/index.html | 3 ++- tests/resources/job_upload_template.xlsx | Bin 6523 -> 6536 bytes 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a68899..163116e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ What each column means in the job submission template: - **project_name**: Project name. A full list can be downloaded at [Project Names](http://aind-metadata-service/project_names) - **process_capsule_id**: Optional Code Ocean capsule or pipeline to run when data is uploaded +- **input_data_mount**: Optional data mount when running a custom pipeline - **platform**: For a list of platforms click [here](https://github.com/AllenNeuralDynamics/aind-data-schema/blob/main/src/aind_data_schema/models/platforms.py). - **acq_datetime**: The time that the data was acquired - **subject_id**: The unique id of the subject diff --git a/pyproject.toml b/pyproject.toml index 1cd4e72..0b1317e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ 'pydantic>=2.0', 'pydantic-settings>=2.0', 'aind-data-schema==0.33.3', - 'aind-data-transfer-models==0.4.0' + 'aind-data-transfer-models==0.5.0' ] [project.optional-dependencies] diff --git a/src/aind_data_transfer_service/configs/job_upload_template.py b/src/aind_data_transfer_service/configs/job_upload_template.py index 2debb7a..7da80b1 100644 --- a/src/aind_data_transfer_service/configs/job_upload_template.py +++ b/src/aind_data_transfer_service/configs/job_upload_template.py @@ -21,6 +21,7 @@ class JobUploadTemplate: HEADERS = [ "project_name", "process_capsule_id", + "input_data_mount", "platform", "acq_datetime", "subject_id", @@ -34,6 +35,7 @@ class JobUploadTemplate: [ "Behavior Platform", "1f999652-00a0-4c4b-99b5-64c2985ad070", + "data_mount", Platform.BEHAVIOR.abbreviation, datetime.datetime(2023, 10, 4, 4, 0, 0), "123456", @@ -46,6 +48,7 @@ class JobUploadTemplate: [ "Ophys Platform - SLAP2", None, + None, Platform.SMARTSPIM.abbreviation, datetime.datetime(2023, 3, 4, 16, 30, 0), "654321", @@ -56,6 +59,7 @@ class JobUploadTemplate: [ "Ephys Platform", None, + None, Platform.ECEPHYS.abbreviation, datetime.datetime(2023, 1, 30, 19, 1, 0), "654321", diff --git a/src/aind_data_transfer_service/templates/index.html b/src/aind_data_transfer_service/templates/index.html index 9c5dcfc..6ca3842 100644 --- a/src/aind_data_transfer_service/templates/index.html +++ b/src/aind_data_transfer_service/templates/index.html @@ -145,7 +145,7 @@
hmf6XrDL2Njt*+8s2HjtT5DR#XY;zh%0`8DYnX%LRZT!JN#M!SG=MG zA7FU;ywUB4l;Sf9Fr%IS(AdS4xG$(h6yS8jK2{7KnH&-ueG$iDgi5E@JKBDE(ODVW zpCiD+sd$;`{tr1-KW12Be|=rNQ|V=~u*e%^LG`vVQjJXqYI6fzv*!x#Y>3}_@cYm-de^nPtqG1Qh zjc-* |D`(Po!w3(3G9XG92G;AC4I~A92S=#K~<4*D;f5sI7Us zgX`v9`$gUl41fiw6{TbUO-9~^Zk|;BJPa9wa%uc7BPV!Ch^@T(BgN^fq{_DQW5bje zCkNG6ttB>b1wuRQJ3RwmU69loBd$XLlxdeSkT(hS8h(!Yy_PMBY$o<*=@w5IB5Q$J zjyLi@Sq!reOX*IinkWzY{i}cKP+PQN4Hr*L4sZ{N`;9`bftdvtAVk-8==Xu~yknng zy+tXnV76S+ix*lHEahtpp?%*}1K2;f)(ca$R?lpD3-t+GU(WH)qUmn?Yrdop(7Hdy z8+Ty6vb}3TZjfsFfM3Vga>E9olBPvu1!d*$N3J #g8OnFlExkmC^A)8K-KCnC+ zDUy5#KT%Yd@ ur z8b&C?Ty} 6BZy=_>2U zAm9$RlL}de_Qr9PUz_eUCto|gD=X{BhI1j8f&*{*#<%3#sX35`ao8BMVO;XKwDQ>_HIJVAf&oq z+t4>;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