np-services 0.1.59__py3-none-any.whl → 0.1.61__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.
@@ -3,6 +3,7 @@ import contextlib
3
3
  import functools
4
4
  import os
5
5
  import pathlib
6
+ import sys
6
7
  import tempfile
7
8
  import time
8
9
  import logging
@@ -11,9 +12,6 @@ from typing import Iterable, Literal
11
12
  import upath
12
13
 
13
14
 
14
- os.environ["USE_TEST_RIG"] = "0"
15
- os.environ["AIBS_RIG_ID"] = "NP.3"
16
-
17
15
  import np_session
18
16
  import np_services
19
17
  import np_config
@@ -262,7 +260,7 @@ def configure_services(services: Iterable[np_services.Testable]) -> None:
262
260
  def get_temp_dir() -> pathlib.Path:
263
261
  return pathlib.Path(tempfile.mkdtemp())
264
262
 
265
- def main(
263
+ def run_pretest(
266
264
  recorders: Iterable[np_services.Testable] = DEFAULT_RECORDERS,
267
265
  stim: np_services.Startable = DEFAULT_STIM,
268
266
  other: Iterable[np_services.Testable] = DEFAULT_SERVICES,
@@ -310,7 +308,16 @@ def parse_args() -> dict:
310
308
  parser.add_argument("--check_audio", action="store_true", help="Check audio-running line on sync", default=False)
311
309
  return vars(parser.parse_args())
312
310
 
313
- if __name__ == '__main__':
314
- main(
311
+ def main() -> None:
312
+ logging.basicConfig(
313
+ level="INFO",
314
+ format="%(name)s | %(levelname)s | %(message)s",
315
+ datefmt="%H:%M:%S",
316
+ stream=sys.stdout,
317
+ )
318
+ run_pretest(
315
319
  **parse_args()
316
- )
320
+ )
321
+
322
+ if __name__ == '__main__':
323
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: np-services
3
- Version: 0.1.59
3
+ Version: 0.1.61
4
4
  Summary: Tools for interfacing with devices and services used in Mindscope Neuropixels experiments at the Allen Institute.
5
5
  Author-Email: bjhardcastle <ben.hardcastle@alleninstitute.org>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
- np_services-0.1.59.dist-info/METADATA,sha256=8AFc2jTox83k1VlRe64j-IZsi55Tb9qiLM8PqeVWoIU,879
2
- np_services-0.1.59.dist-info/WHEEL,sha256=N2J68yzZqJh3mI_Wg92rwhw0rtJDFpZj9bwQIMJgaVg,90
3
- np_services-0.1.59.dist-info/entry_points.txt,sha256=TldbYj9M3gsdasFZbDnfhCa-fm5kPiMDXcOj21Qoawk,62
1
+ np_services-0.1.61.dist-info/METADATA,sha256=_M3niiZQXNQTjw983F98BtXzs_M1xb1epYVEtrr5aQo,879
2
+ np_services-0.1.61.dist-info/WHEEL,sha256=N2J68yzZqJh3mI_Wg92rwhw0rtJDFpZj9bwQIMJgaVg,90
3
+ np_services-0.1.61.dist-info/entry_points.txt,sha256=TldbYj9M3gsdasFZbDnfhCa-fm5kPiMDXcOj21Qoawk,62
4
4
  np_services/.mypy_cache/.gitignore,sha256=_7s5RkPBEvI1a7XzGE6V4z_XMhRokvTu6tEml1Vw_zk,36
5
5
  np_services/.mypy_cache/3.9/@plugins_snapshot.json,sha256=RBNvo1WzZ4oRRq0W9-hknpT7T8If536DEMBg9hyq_4o,2
6
6
  np_services/.mypy_cache/3.9/__future__.data.json,sha256=raQSzDEsSFGbpuXnjSoGWTF3ufScHYT4VgkTwlfTX3s,8382
@@ -200,7 +200,7 @@ np_services/resources/grey_desktop.ps1,sha256=dKv_J7o3rmV6kLwhtIJA-kJSP1jOOp_Yxq
200
200
  np_services/resources/mvr_connector.py,sha256=ZcZYtdtxMyOwoZzGiH2Xh2vllRzcgr6nhNiuYOkbPHM,8230
201
201
  np_services/resources/reset_desktop.ps1,sha256=x37x6upJs6F4w47pOmtBMJ9L9b3S_g7zFyb7wd_7ASA,2219
202
202
  np_services/resources/zro.py,sha256=eAtKB1h3rFXd-EfGuXFNjtkDMC_9e6ZDA_mzIUjze-g,10246
203
- np_services/scripts/pretest.py,sha256=pllIWOBNaQETL4lzt_8ksjrdhZnwUnjVBYLf7WO5LE8,11496
203
+ np_services/scripts/pretest.py,sha256=Z_ZYoOkOfr0N1z4xwk4ogfLXiZc6bzg1uuRjarbVinw,11649
204
204
  np_services/stim_computer_theme_changer.py,sha256=ypUWS6FZICpZta4GmtTMmgNvw9Sms-cAKv0WZDzFln4,2034
205
205
  np_services/utils.py,sha256=VoCRLg7AGcv0qogMQF1-cBq1dWMOlKURotCwW7PKsns,5770
206
- np_services-0.1.59.dist-info/RECORD,,
206
+ np_services-0.1.61.dist-info/RECORD,,