sl-shared-assets 1.0.0rc10__tar.gz → 1.0.0rc11__tar.gz

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.

Files changed (24) hide show
  1. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/PKG-INFO +1 -1
  2. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/pyproject.toml +1 -1
  3. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/suite2p.py +14 -7
  4. sl_shared_assets-1.0.0rc10/WIP.py +0 -13
  5. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/.gitignore +0 -0
  6. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/LICENSE +0 -0
  7. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/README.md +0 -0
  8. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/Makefile +0 -0
  9. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/make.bat +0 -0
  10. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/source/api.rst +0 -0
  11. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/source/conf.py +0 -0
  12. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/source/index.rst +0 -0
  13. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/docs/source/welcome.rst +0 -0
  14. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/envs/slsa_dev_lin.yml +0 -0
  15. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/envs/slsa_dev_lin_spec.txt +0 -0
  16. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/__init__.py +0 -0
  17. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/ascension_tools.py +0 -0
  18. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/cli.py +0 -0
  19. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/data_classes.py +0 -0
  20. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/packaging_tools.py +0 -0
  21. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/py.typed +0 -0
  22. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/server.py +0 -0
  23. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/src/sl_shared_assets/transfer_tools.py +0 -0
  24. {sl_shared_assets-1.0.0rc10 → sl_shared_assets-1.0.0rc11}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sl-shared-assets
3
- Version: 1.0.0rc10
3
+ Version: 1.0.0rc11
4
4
  Summary: Stores assets shared between multiple Sun (NeuroAI) lab data pipelines.
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/
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
8
8
  # Project metdata section. Provides the genral ID information about the project.
9
9
  [project]
10
10
  name = "sl-shared-assets"
11
- version = "1.0.0rc10"
11
+ version = "1.0.0rc11"
12
12
  description = "Stores assets shared between multiple Sun (NeuroAI) lab data pipelines."
13
13
  readme = "README.md"
14
14
  license = { file = "LICENSE" }
@@ -52,10 +52,10 @@ class Main:
52
52
  """Determines the number of frames to process, if greater than zero. If negative (-1), the suite2p is configured
53
53
  to process all available frames."""
54
54
 
55
- multiplane_parallel: bool = False
56
- """Determines whether to parallelize plane processing for multiplane data. This requires a properly configured
57
- server to parallelize the computations and will not work on the local machine. Due to how suite2p is used in the
58
- lab, this has to always be set to False."""
55
+ multiplane_parallel: bool = True
56
+ """Determines whether to parallelize plane processing for multiplane data. Assuming that this configuration class is
57
+ used together with Sun lab optimized suite2p, it is always recommended to have this set to True for most runtimes.
58
+ """
59
59
 
60
60
  ignore_flyback: list[int] = field(default_factory=list)
61
61
  """The list of plane indices to ignore as flyback planes that typically contain no valid imaging data."""
@@ -162,9 +162,11 @@ class Registration:
162
162
  nimg_init: int = 500
163
163
  """The number of frames to use to compute the reference image for registration."""
164
164
 
165
- batch_size: int = 1000
166
- """The number of frames to register simultaneously in each batch. This depends on memory constraints. It is faster
167
- to run the registration if the batch is larger, but it requires more RAM."""
165
+ batch_size: int = 100
166
+ """The number of frames to register simultaneously in each batch. When processing data on fast (NVME) drives,
167
+ increasing this parameter has minimal benefits and results in undue RAM use overhead. Therefore, on fast drives,
168
+ keep this number low. On slow drives, increasing this number may result in faster runtime, at the expense of
169
+ increased RAM use."""
168
170
 
169
171
  maxregshift: float = 0.1
170
172
  """The maximum allowed shift during registration, given as a fraction of the frame size, in pixels
@@ -444,6 +446,11 @@ class Suite2PConfiguration(YamlConfig):
444
446
  for section_name, section in asdict(self).items():
445
447
  # Adds all keys and values from each section to the combined dictionary
446
448
  if isinstance(section, dict):
449
+ # Since some keys in the original suite2p configuration file use 'unconventional' names, we opted to use
450
+ # conventional names in our configuration file. To make the 'ops' version of this file fully compatible
451
+ # with suite2p, we need to translate all such modified keys back to values expected by suite2p.
452
+ if "one_p_reg" in section.keys():
453
+ section["1Preg"] = section.pop("one_p_reg")
447
454
  combined_ops.update(section)
448
455
 
449
456
  return combined_ops
@@ -1,13 +0,0 @@
1
- from pathlib import Path
2
-
3
- from sl_shared_assets import SessionData, transfer_directory
4
-
5
- root_folder = Path("/media/Data/Experiments/Tyche")
6
-
7
- raw_data_paths = [folder for folder in root_folder.rglob("session_data.yaml")]
8
-
9
- for source in raw_data_paths:
10
- sd = SessionData.load(session_path=source.parents[1], on_server=False)
11
- transfer_directory(
12
- source=sd.raw_data.raw_data_path, destination=sd.destinations.server_raw_data_path, verify_integrity=False
13
- )