np_codeocean 0.3.2__py3-none-any.whl → 0.3.3__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.
- np_codeocean/np_session_utils.py +4 -1
- np_codeocean/scripts/upload_dynamic_routing_ecephys.py +2 -2
- np_codeocean/utils.py +1 -1
- {np_codeocean-0.3.2.dist-info → np_codeocean-0.3.3.dist-info}/METADATA +1 -1
- {np_codeocean-0.3.2.dist-info → np_codeocean-0.3.3.dist-info}/RECORD +7 -7
- {np_codeocean-0.3.2.dist-info → np_codeocean-0.3.3.dist-info}/WHEEL +0 -0
- {np_codeocean-0.3.2.dist-info → np_codeocean-0.3.3.dist-info}/entry_points.txt +0 -0
np_codeocean/np_session_utils.py
CHANGED
|
@@ -342,8 +342,11 @@ def upload_session(
|
|
|
342
342
|
csv_content: dict = get_upload_csv_for_session(upload)
|
|
343
343
|
utils.write_upload_csv(csv_content, upload.job)
|
|
344
344
|
np_logging.web('np_codeocean').info(f'Submitting {upload.session} to hpc upload queue')
|
|
345
|
+
extra_BasicUploadJobConfigs_params = {}
|
|
346
|
+
if codeocean_configs is not None:
|
|
347
|
+
extra_BasicUploadJobConfigs_params['codeocean_configs'] = codeocean_configs
|
|
345
348
|
utils.put_jobs_for_hpc_upload(
|
|
346
|
-
utils.get_job_models_from_csv(upload.job,
|
|
349
|
+
utils.get_job_models_from_csv(upload.job, **extra_BasicUploadJobConfigs_params),
|
|
347
350
|
upload_service_url=utils.DEV_SERVICE if test else utils.AIND_DATA_TRANSFER_SERVICE,
|
|
348
351
|
user_email=hpc_upload_job_email,
|
|
349
352
|
dry_run=dry_run,
|
|
@@ -153,6 +153,7 @@ def write_metadata_and_upload(
|
|
|
153
153
|
ignore_errors=True,
|
|
154
154
|
skip_existing=not regenerate_metadata,
|
|
155
155
|
)
|
|
156
|
+
|
|
156
157
|
pipelines = [
|
|
157
158
|
aind_codeocean_pipeline_monitor.models.PipelineMonitorSettings(
|
|
158
159
|
run_params=codeocean.computation.RunParams(
|
|
@@ -204,13 +205,12 @@ def parse_args() -> argparse.Namespace:
|
|
|
204
205
|
parser.add_argument('--dry-run', action='store_true', help="Create upload job but do not submit to hpc upload queue.")
|
|
205
206
|
parser.add_argument('--preserve-symlinks', dest='regenerate_symlinks', action='store_false', help="Existing symlink folders will not be deleted and regenerated - may result in additional data being uploaded")
|
|
206
207
|
parser.add_argument('--regenerate-metadata', action='store_true', help="Regenerate metadata files (session.json and rig.json) even if they already exist")
|
|
207
|
-
parser.add_argument('--
|
|
208
|
+
parser.add_argument('--sync', dest="adjust_ephys_timestamps", action='store_true', help="Adjust ephys timestamps.npy prior to upload using sync data (if available)")
|
|
208
209
|
return parser.parse_args()
|
|
209
210
|
|
|
210
211
|
def main() -> None:
|
|
211
212
|
args = parse_args()
|
|
212
213
|
kwargs = vars(args)
|
|
213
|
-
kwargs |= {'adjust_ephys_timestamps': False} # unnecessary while we have machinery in place for adjusting in npc_sessions (adds 5 GB of timestamps files for each upload)
|
|
214
214
|
np_codeocean.utils.set_npc_lims_credentials()
|
|
215
215
|
write_metadata_and_upload(**kwargs)
|
|
216
216
|
|
np_codeocean/utils.py
CHANGED
|
@@ -308,7 +308,7 @@ def get_job_models_from_csv(
|
|
|
308
308
|
path: pathlib.Path,
|
|
309
309
|
ephys_slurm_settings: aind_slurm_rest.models.V0036JobProperties = DEFAULT_EPHYS_SLURM_SETTINGS,
|
|
310
310
|
user_email: str = HPC_UPLOAD_JOB_EMAIL,
|
|
311
|
-
**
|
|
311
|
+
**e: Any,
|
|
312
312
|
) -> tuple[aind_data_transfer_models.core.BasicUploadJobConfigs, ...]:
|
|
313
313
|
jobs = pl.read_csv(path, eol_char='\r').with_columns(
|
|
314
314
|
pl.col('subject-id').cast(str),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: np_codeocean
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Tools for uploading and interacting with Mindscope Neuropixels experiments on Code Ocean
|
|
5
5
|
Author-Email: Ben Hardcastle <ben.hardcastle@alleninstitute.org>, Chris Mochizuki <chrism@alleninstitute.org>, Arjun Sridhar <arjun.sridhar@alleninstitute.org>
|
|
6
6
|
License: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
np_codeocean-0.3.
|
|
2
|
-
np_codeocean-0.3.
|
|
3
|
-
np_codeocean-0.3.
|
|
1
|
+
np_codeocean-0.3.3.dist-info/METADATA,sha256=fXfF6KXInHKD3E_cRR-4dwPXxCP19DZNzlaoopvC9vo,3159
|
|
2
|
+
np_codeocean-0.3.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
np_codeocean-0.3.3.dist-info/entry_points.txt,sha256=p32aRkIjrFa4KtUbq2E6ZMYBVNRUw3U8ZIarvwNkK1E,250
|
|
4
4
|
np_codeocean/__init__.py,sha256=ED7YOu-3AIQIEML9jPT9bQ690lfhYZNiOB4QhnJ8r8U,76
|
|
5
5
|
np_codeocean/metadata/__init__.py,sha256=jayhwvrb4fZYODtiVkJBXEYYkLJ_5SNNQ5WW21bsx2s,72
|
|
6
6
|
np_codeocean/metadata/common.py,sha256=ZOAe8MJJwNtBt9Voqm4MsA-xZCOrzCKkc_rku5A2yNA,584
|
|
@@ -14,7 +14,7 @@ np_codeocean/metadata/rigs.py,sha256=Xq3BWvz0pxbkVA1UN9EFprbHA4hYaiSAFk82pXUfdLQ
|
|
|
14
14
|
np_codeocean/metadata/storage.py,sha256=b7vivpO1E42xoqfLdomAOU-FER4VB3-cUmjTwUQNxNE,2123
|
|
15
15
|
np_codeocean/metadata/update.py,sha256=x2hploIM7AXmX5DaapaNsojJ7E8s_UmTDfVuGRWiyHY,5211
|
|
16
16
|
np_codeocean/metadata/utils.py,sha256=X6CVxgemeCaXiGnt35AHqvSCz0p5keJHHGkIgvYDq5E,4318
|
|
17
|
-
np_codeocean/np_session_utils.py,sha256=
|
|
17
|
+
np_codeocean/np_session_utils.py,sha256=PD1DSD5SeUH97Uzt7kxjDtYDBBs-3vITFCFkPxQRe-c,16829
|
|
18
18
|
np_codeocean/scripts/.mypy_cache/.gitignore,sha256=_7s5RkPBEvI1a7XzGE6V4z_XMhRokvTu6tEml1Vw_zk,36
|
|
19
19
|
np_codeocean/scripts/.mypy_cache/3.11/@plugins_snapshot.json,sha256=RBNvo1WzZ4oRRq0W9-hknpT7T8If536DEMBg9hyq_4o,2
|
|
20
20
|
np_codeocean/scripts/.mypy_cache/3.11/IPython/__init__.data.json,sha256=XIcapuTlKIvgnYu5wffxS8aovyHcg02vUtjEfA_eBDw,5427
|
|
@@ -3395,7 +3395,7 @@ np_codeocean/scripts/.mypy_cache/3.11/zoneinfo/__init__.data.json,sha256=g3oqeS6
|
|
|
3395
3395
|
np_codeocean/scripts/.mypy_cache/3.11/zoneinfo/__init__.meta.json,sha256=AvLhG4cE-92NWoQ-6ZIX546e4YT57YVtwE2rTyRA7rg,1826
|
|
3396
3396
|
np_codeocean/scripts/.mypy_cache/CACHEDIR.TAG,sha256=cOu1T6y3b32rMFgmHu-0OiMV0o0Q_PkKhVOMBacrjR4,193
|
|
3397
3397
|
np_codeocean/scripts/upload_dynamic_routing_behavior.py,sha256=A7FapFuVECdPZeRmeaOtH708DzWh44IkXHTMHSVzHys,17169
|
|
3398
|
-
np_codeocean/scripts/upload_dynamic_routing_ecephys.py,sha256=
|
|
3398
|
+
np_codeocean/scripts/upload_dynamic_routing_ecephys.py,sha256=MczwvqE2wiVVGmE_hHoywua7c32E2dGRCqfQp_Az0qA,10457
|
|
3399
3399
|
np_codeocean/scripts/upload_split_recordings_example.py,sha256=1_aqoBxAkB_VpRKYqyPsEQBDGvgyAHXAkIJA0ZT2Vb0,1490
|
|
3400
|
-
np_codeocean/utils.py,sha256=
|
|
3401
|
-
np_codeocean-0.3.
|
|
3400
|
+
np_codeocean/utils.py,sha256=6wujVmWzFORZOpkSrgDiTKzMhnMXYb_G8Xfcmztlusg,20615
|
|
3401
|
+
np_codeocean-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|