188 Commits

Author SHA1 Message Date
f621ef280e fix(bec_lib): fixed access to global vars 2024-06-12 19:06:22 +02:00
a481fdadfe refactor: add system_config and review docs 2024-06-07 09:51:00 +02:00
92bd51e788 refactor: remove bec.file_writer, and moved info to metadata, renamed md to metadata in kwargs from scans 2024-06-07 09:51:00 +02:00
83334f18c4 fix: fix bec.file_writer option to configure writer from command line 2024-06-07 09:51:00 +02:00
05c24e880b fix(bec_lib): fixed msg type serialization 2024-06-05 16:50:31 +02:00
1be38300ab fix(bec_lib): fixed serialization for message endpoints 2024-06-03 14:04:57 +02:00
0382ac52dd refactor: deprecated scan report hint 2024-05-22 11:57:59 +02:00
87cc71aa91 fix: race condition when reading new value from stream 2024-05-17 09:09:04 +02:00
1c628fd610 fix: do not import modules if only for type checking (faster import) 2024-05-17 09:04:52 +02:00
8a017ef3d7 fix: clean all imports from bec_lib, remove use of @threadlocked 2024-05-17 09:04:52 +02:00
0ccd13cd73 feat: add utility function to determine instance of an object by class name 2024-05-15 11:50:17 +02:00
549994d0fd style: create directory to contain utils 2024-05-15 11:50:08 +02:00
5c5c18ef0e fix: disabled script linter for now 2024-05-14 15:05:44 +02:00
2aafb249e8 ci: update dependencies and add ci job to check for package versions 2024-05-10 11:54:08 +02:00
f059bf9318 fix(RedisConnector): add 'from_start' support in 'register' for streams 2024-05-08 15:03:36 +02:00
c0a0e3e442 feat: add client message handler to send info messages from services to clients; closes 258 2024-05-03 08:32:28 +02:00
c54dfc166f fix: unified device message signature 2024-05-01 17:43:38 +02:00
af8593794c fix: fixed log message log type 2024-05-01 14:05:40 +02:00
ca7c238519 fix: fixed log message signature and added literal checks; closes #277 2024-05-01 13:36:31 +02:00
3964870749 fix: logs should be send, not set_and_publish; closes #278 2024-05-01 11:17:47 +02:00
64d5c304d9 test(bec_lib): added test for log monitor 2024-04-28 12:43:23 +02:00
39bb6281bd feat(bec_lib): added option to combine yaml files 2024-04-26 17:05:22 +02:00
6e14de35dc test(bec_lib): added test for unregistering callbacks 2024-04-26 10:20:48 +02:00
6b89240f46 docs: review docs, fix ScanModificationMessage, monitor callback and DAPRequestMessage 2024-04-26 07:59:24 +02:00
1eaefc1c8a fix(channel_monitor): register.start removed since connector.register do not have any .start method 2024-04-25 17:32:09 +02:00
fe657b6adc ci: skip trailing comma for black 2024-04-19 15:31:01 +02:00
7f1b78978b feat(bec_lib): added plugin helper 2024-04-19 10:56:50 +02:00
d3ad8ca432 refacto: bec_client renamed bec_ipython_client 2024-04-16 16:59:38 +02:00
5547793375 tests: new fixtures 'test_config_yaml' and device manager 2024-04-16 16:59:38 +02:00
0a832a149d refactor: use callback_handler for namespace updates of clients and add tests 2024-04-12 17:10:50 +02:00
52b33d8b65 fix(client): removed outdated bec plotter; to be replaced by BECFigure once ready 2024-04-12 13:33:51 +02:00
eb9c812529 fix(test_fake_redis): TestMessage fixed to pydantic BaseModel 2024-04-11 15:03:37 +02:00
93a5a2854b refactor: (un)register to work with pub/sub or stream endpoints 2024-04-11 15:03:37 +02:00
e1ad412be7 refactor: make '(un)register_stream' similar to pub/sub registration API
- StreamTopicInfo renamed to StreamSubscriptionInfo
- "cb" field renamed to "cb_ref" (because it is really a weakref)
- removed StreamRegisterMixin class
    - merged with RedisConnector, since there is no other class to mix
      with
- removed need for custom stream listeners
    - differenciation between 'direct' reading and 'bunch' reading is
      made with a specialized StreamSubscriptionInfo object called
      'DirectReadingStreamSubscriptionInfo'
- use a single events queue for all messages
    - all messages callbacks treated the same, by the same thread
- pay attention to registering multiple times a stream to the same
  callback, and prevent newest_only=True streams to also be registered
with the same callback with newest_only=False
2024-04-11 15:03:37 +02:00
913dd6dca2 tests: improve test_redis_connector_register_stream_newest_only 2024-04-11 15:03:37 +02:00
e87812a816 feat(connector): add 'unregister' method to cancel subscription to pub/sub 2024-04-11 15:03:37 +02:00
344ef508c0 fix(redis connector): prevent multiple identical connections in 'register' 2024-04-11 15:03:37 +02:00
0a9a6747da fix: add raise condition for fetching path from service_config for recovery_device_config dumps 2024-04-11 10:30:39 +02:00
2317fd3df7 feat: Add check for logger to load correct config, add tests 2024-04-10 15:13:19 +02:00
3fa544bef9 tests: fix logger config in scihub 2024-04-10 13:10:10 +02:00
95ac2055eb refactor: moved messages to pydantic 2024-04-10 10:28:14 +02:00
246f271bc9 feat: adapt file writing; log files to common dir and refactoring of filewriter 2024-04-08 14:30:59 +02:00
2d66967e04 style: apply isort to the whole codebase, clean unused imports 2024-03-28 13:17:03 +01:00
f37109873a fix(tests): ensure all tests do not leak threads 2024-03-28 12:56:24 +01:00
996809f3a0 refactor: renamed queueID to queue_id 2024-03-22 15:07:19 +01:00
01b4e9cc68 refactor: renamed scanID to scan_id 2024-03-22 15:06:14 +01:00
e281b6aaa1 feat: add "count" keyword arg to stream connector .get_last(), to retrieve last "count" items
count=1 by default
2024-03-21 09:53:42 +01:00
da5df48008 fix: validate endpoint for .get_last (#236), enhance endpoint validation 2024-03-21 09:53:42 +01:00
62701077bd test(bec_lib): fixed tests for endpoint structure 2024-03-20 15:49:39 +01:00
d1834a13c1 refactor: cleanup of BECClient 2024-03-20 08:06:43 +01:00