sl-shared-assets 3.1.1__py3-none-any.whl → 3.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sl-shared-assets might be problematic. Click here for more details.
- sl_shared_assets/cli.py +1 -1
- sl_shared_assets/tools/project_management_tools.py +7 -7
- sl_shared_assets/tools/project_management_tools.pyi +4 -4
- {sl_shared_assets-3.1.1.dist-info → sl_shared_assets-3.1.2.dist-info}/METADATA +1 -1
- {sl_shared_assets-3.1.1.dist-info → sl_shared_assets-3.1.2.dist-info}/RECORD +8 -8
- {sl_shared_assets-3.1.1.dist-info → sl_shared_assets-3.1.2.dist-info}/WHEEL +0 -0
- {sl_shared_assets-3.1.1.dist-info → sl_shared_assets-3.1.2.dist-info}/entry_points.txt +0 -0
- {sl_shared_assets-3.1.1.dist-info → sl_shared_assets-3.1.2.dist-info}/licenses/LICENSE +0 -0
sl_shared_assets/cli.py
CHANGED
|
@@ -128,7 +128,7 @@ def generate_project_manifest_file(
|
|
|
128
128
|
generate_project_manifest(
|
|
129
129
|
raw_project_directory=Path(project_path),
|
|
130
130
|
output_directory=Path(output_directory),
|
|
131
|
-
|
|
131
|
+
processed_data_root=Path(project_processed_path) if project_processed_path else None,
|
|
132
132
|
)
|
|
133
133
|
# noinspection PyTypeChecker
|
|
134
134
|
console.echo(message=f"Project {Path(project_path).stem} data manifest file: generated.", level=LogLevel.SUCCESS)
|
|
@@ -230,7 +230,7 @@ class ProjectManifest:
|
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
def generate_project_manifest(
|
|
233
|
-
raw_project_directory: Path, output_directory: Path,
|
|
233
|
+
raw_project_directory: Path, output_directory: Path, processed_data_root: Path | None = None
|
|
234
234
|
) -> None:
|
|
235
235
|
"""Builds and saves the project manifest .feather file under the specified output directory.
|
|
236
236
|
|
|
@@ -248,9 +248,9 @@ def generate_project_manifest(
|
|
|
248
248
|
Args:
|
|
249
249
|
raw_project_directory: The path to the root project directory used to store raw session data.
|
|
250
250
|
output_directory: The path to the directory where to save the generated manifest file.
|
|
251
|
-
|
|
252
|
-
is different from the 'raw_project_directory'. Typically, this would be the
|
|
253
|
-
and not on local machines.
|
|
251
|
+
processed_data_root: The path to the root directory (volume) used to store processed data for all Sun lab
|
|
252
|
+
projects if it is different from the parent of the 'raw_project_directory'. Typically, this would be the
|
|
253
|
+
case on remote compute server(s) and not on local machines.
|
|
254
254
|
"""
|
|
255
255
|
|
|
256
256
|
if not raw_project_directory.exists():
|
|
@@ -306,7 +306,7 @@ def generate_project_manifest(
|
|
|
306
306
|
# Instantiates the SessionData instance to resolve the paths to all session's data files and locations.
|
|
307
307
|
session_data = SessionData.load(
|
|
308
308
|
session_path=directory,
|
|
309
|
-
processed_data_root=
|
|
309
|
+
processed_data_root=processed_data_root,
|
|
310
310
|
make_processed_data_directory=False,
|
|
311
311
|
)
|
|
312
312
|
|
|
@@ -519,7 +519,7 @@ def verify_session_checksum(
|
|
|
519
519
|
# Generates the manifest file inside the root raw data project directory
|
|
520
520
|
generate_project_manifest(
|
|
521
521
|
raw_project_directory=session_path.parents[1],
|
|
522
|
-
|
|
522
|
+
processed_data_root=processed_data_root,
|
|
523
523
|
output_directory=raw_directory,
|
|
524
524
|
)
|
|
525
525
|
|
|
@@ -623,6 +623,6 @@ def resolve_p53_marker(
|
|
|
623
623
|
# Generates the manifest file inside the root raw data project directory
|
|
624
624
|
generate_project_manifest(
|
|
625
625
|
raw_project_directory=session_path.parents[1],
|
|
626
|
-
|
|
626
|
+
processed_data_root=processed_data_root,
|
|
627
627
|
output_directory=raw_directory,
|
|
628
628
|
)
|
|
@@ -107,7 +107,7 @@ class ProjectManifest:
|
|
|
107
107
|
"""
|
|
108
108
|
|
|
109
109
|
def generate_project_manifest(
|
|
110
|
-
raw_project_directory: Path, output_directory: Path,
|
|
110
|
+
raw_project_directory: Path, output_directory: Path, processed_data_root: Path | None = None
|
|
111
111
|
) -> None:
|
|
112
112
|
"""Builds and saves the project manifest .feather file under the specified output directory.
|
|
113
113
|
|
|
@@ -125,9 +125,9 @@ def generate_project_manifest(
|
|
|
125
125
|
Args:
|
|
126
126
|
raw_project_directory: The path to the root project directory used to store raw session data.
|
|
127
127
|
output_directory: The path to the directory where to save the generated manifest file.
|
|
128
|
-
|
|
129
|
-
is different from the 'raw_project_directory'. Typically, this would be the
|
|
130
|
-
and not on local machines.
|
|
128
|
+
processed_data_root: The path to the root directory (volume) used to store processed data for all Sun lab
|
|
129
|
+
projects if it is different from the parent of the 'raw_project_directory'. Typically, this would be the
|
|
130
|
+
case on remote compute server(s) and not on local machines.
|
|
131
131
|
"""
|
|
132
132
|
|
|
133
133
|
def verify_session_checksum(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sl-shared-assets
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
4
4
|
Summary: Provides data acquisition and processing assets shared between Sun (NeuroAI) lab libraries.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Sun-Lab-NBB/sl-shared-assets
|
|
6
6
|
Project-URL: Documentation, https://sl-shared-assets-api-docs.netlify.app/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
sl_shared_assets/__init__.py,sha256=ybThh0XDtijjwahKkSEnnQ44rxrN2SVyjB5dHaXts0E,2391
|
|
2
2
|
sl_shared_assets/__init__.pyi,sha256=Cb-umRqvnynk2udbgqAJ6h5_tiJyvVtWmx0kLKrL2Yg,2678
|
|
3
|
-
sl_shared_assets/cli.py,sha256=
|
|
3
|
+
sl_shared_assets/cli.py,sha256=ERSU9iTLZxL0eIseQA-5d7eTBjlmfjHhEozWTg0dkJA,19079
|
|
4
4
|
sl_shared_assets/cli.pyi,sha256=5hEbOnYaH4q5qdqJ-zhM9-ElzgcaBeMAX34tuHaUDos,5328
|
|
5
5
|
sl_shared_assets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
sl_shared_assets/data_classes/__init__.py,sha256=mP__bBIIjMf0EETM4PgQzKy1ZKsjp6paRPNDWWbPRV4,1962
|
|
@@ -25,12 +25,12 @@ sl_shared_assets/tools/ascension_tools.py,sha256=xI-hrkR9NIgb7lyhj-ntc8tCYQvDEv6
|
|
|
25
25
|
sl_shared_assets/tools/ascension_tools.pyi,sha256=fs5j7nbnZ4WpgK8D75A7WJcvFMwK_MUO9ULIYo1YkGo,3739
|
|
26
26
|
sl_shared_assets/tools/packaging_tools.py,sha256=VxQoluGPDUWjPj1ftEt2dvUcdmj0g7T1frGZhZPM8NE,7541
|
|
27
27
|
sl_shared_assets/tools/packaging_tools.pyi,sha256=vgGbAQCExwg-0A5F72MzEhzHxu97Nqg1yuz-5P89ycU,3118
|
|
28
|
-
sl_shared_assets/tools/project_management_tools.py,sha256=
|
|
29
|
-
sl_shared_assets/tools/project_management_tools.pyi,sha256=
|
|
28
|
+
sl_shared_assets/tools/project_management_tools.py,sha256=vGCysu-mvK1JebDOnmyb7IvseLwpHY4T3XhAxcA-bJI,32153
|
|
29
|
+
sl_shared_assets/tools/project_management_tools.pyi,sha256=r45nLPP51mrtn0ajm9iSVq-aR37CS71DGZuRXqd29Zc,11377
|
|
30
30
|
sl_shared_assets/tools/transfer_tools.py,sha256=vqYO4sERZV0W1DFNFnTpJA6QBZ4QJA94a2TyUhZW2Qk,6605
|
|
31
31
|
sl_shared_assets/tools/transfer_tools.pyi,sha256=WtUGfaKV9FP_CnhBg_UvclpuDvOlEESOSMlEDtWpOLg,3293
|
|
32
|
-
sl_shared_assets-3.1.
|
|
33
|
-
sl_shared_assets-3.1.
|
|
34
|
-
sl_shared_assets-3.1.
|
|
35
|
-
sl_shared_assets-3.1.
|
|
36
|
-
sl_shared_assets-3.1.
|
|
32
|
+
sl_shared_assets-3.1.2.dist-info/METADATA,sha256=TOn08frNpw_CDhAGpYrjtIrxdcJ4TwMloOT4kqllvLU,56944
|
|
33
|
+
sl_shared_assets-3.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
sl_shared_assets-3.1.2.dist-info/entry_points.txt,sha256=UmO1rl7ly9N7HWPwWyP9E0b5KBUStpBo4TRoqNtizDY,430
|
|
35
|
+
sl_shared_assets-3.1.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
36
|
+
sl_shared_assets-3.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|