Commit Graph
231 Commits
Author SHA1 Message Date
leonarski_f d507c19e79 Daq - models: added two zooms to auto loop centering and changed gain and exposure values. 2025-09-11 14:36:17 +02:00
leonarski_f 289474b56e Server: fixed bug where api_status wasn't import and added http exception to status call. 2025-09-11 14:35:31 +02:00
leonarski_f dd462d0acd GUI: added back 1x zoom button 2025-09-11 14:34:18 +02:00
leonarski_f d07b8247ae config: fixed strange foramtting 2025-09-05 17:26:59 +02:00
leonarski_f b715cfa9d4 config: updated alc_bkg script to look at redis for bkg at a specific zoom exposure and gain 2025-09-05 17:26:38 +02:00
leonarski_f 754dd214bd devices: detector cover PV added 2025-09-05 17:25:42 +02:00
leonarski_f f608b1b7b7 daq: loop centering sequence. strange formatting fixed. 2025-09-05 17:25:19 +02:00
leonarski_f c50edebe22 daq: loop centering sequence. Changes how filenames oif background images are generated and saved in redis. Changes angles. Debugging print statements currently kept but can be removed following further testing. 2025-09-05 17:24:32 +02:00
leonarski_f 9fece3e4a1 daq: loop centering. Tried a coupole of methods includign a flatfield correction. Currently implemenmted absdiff with an Otsu threshold estiamtion. Needs tidying! 2025-09-05 17:23:00 +02:00
leonarski_f 1e5166ffba daq: changes to get background. now save background for zoom and exposure settings. fixed bug where background would be taken at default sam cam settings. 2025-09-05 17:21:22 +02:00
leonarski_f e94ba0a084 daq: changed auto loop centring angles to -45 and -90 to reduce glare from smargon 2025-09-05 17:17:51 +02:00
leonarski_f 125671617d daq: auto loop centring and auto crystal centring error handling 2025-09-05 17:17:05 +02:00
leonarski_f 7d6c3a63b0 workflows: added detector cover to workflows 2025-09-05 17:14:34 +02:00
leonarski_f 0fd137a160 daq: added screenshot before raster 2025-09-03 10:16:54 +02:00
leonarski_f ead75f8d29 aaredb: added alc_failed event message 2025-09-03 10:16:33 +02:00
leonarski_f f7166a6619 Tell Client: added X as an allowed position (reference puck) 2025-09-02 17:23:59 +02:00
leonarski_f bd9a24bc17 DAQ: additional error handling for magnet controller status failure 2025-09-02 17:23:22 +02:00
leonarski_f 471f853663 DAQ: changed error handling so if rotation scan only happens if ALC succeeds and otherwise continues to next sample 2025-09-02 16:44:45 +02:00
leonarski_f 44059ac8fd DAQ: Reenable TELL after doors opened and locked 2025-08-25 15:38:22 +02:00
leonarski_f a9321888c6 Removed logger usage and redundant debug messages from models.py. 2025-08-20 15:25:26 +02:00
GotthardG d47ce8be84 Introduce DataCollectionParameters model with validation and update dependencies
Build and Publish / build (push) Successful in 24s
Added a new `DataCollectionParameters` model in `aaredaqlib` with extensive field validation and default handling for increased robustness. Updated `aaredaqlib`, `aaredb`, and related dependencies to version `0.2.4` for consistency across modules. Enhanced logging for better visibility during validation.
0.2.4
2025-08-20 15:13:05 +02:00
leonarski_f 80a473806d Updated aareDB dependency to version 0.1.1a22 in pyproject.toml. 2025-08-20 13:11:32 +02:00
leonarski_f 2452d47475 DAQ: For vertical grid scan in auto centering, use a smaller y step. 2025-08-13 09:19:12 +02:00
leonarski_f efa8e611f9 DAQ: Changed exposure time in auto_center raster grid request from 0.05 to 0.01 2025-08-13 09:16:39 +02:00
leonarski_f 1afdb5851b DAQ: added any(img.spots > 0) and a backgroudn thershold check to identify crystall raster. 2025-08-13 09:15:44 +02:00
leonarski_f 2c0a08f0c1 DAQ: updated gain value for loop centring to current value used. 2025-08-13 09:14:37 +02:00
leonarski_f 05fe41ae93 DAQ: fixed bug in Image-_number function> ALso checks if image_angle is 0 to prevent a divide by 0 error. 2025-07-22 17:07:12 +02:00
leonarski_f 174881d160 DAQ: fixed bug where order of samples dropped into the queue would occasioanlly be arbitrary. 2025-07-21 15:55:29 +02:00
leonarski_f 092cf6593f DAQ: removed auto from automated data collection filename (user request) 2025-07-21 10:09:19 +02:00
leonarski_f 3eebdef584 DAQ: increased exposure time slightly for loop centering 2025-07-18 10:27:23 +02:00
leonarski_f abab0aac10 DAQ: Added further complexity to identify_crystal_raster. Looking at the number of spots indexed, and if multiple images with this value, selects the median image number 2025-07-17 14:27:19 +02:00
leonarski_f 8146184fad DAQ: Changed zoom settings before auto_center in measure, and added a random hex string to the sample_prefix to prevent data overwrite 2025-07-17 14:27:19 +02:00
leonarski_f c73ac8d880 DAQ: error handling for loop centering. Following loop centering change to higher zoom for ML box 2025-07-17 14:27:19 +02:00
leonarski_f c50dd0f047 DAQ: fixed bug where ml box screenshots where not sent correctly to the db 2025-07-17 14:27:19 +02:00
leonarski_f 7d33785563 DAQ: send sample failed event to the database during automatic data collection if something fails. 2025-07-17 14:27:19 +02:00
leonarski_f afbd07a79d DAQ: added aaredb events to send an error message event to the db 2025-07-17 14:27:19 +02:00
leonarski_f 177199c60a GUI: axis camera optimization 2025-07-17 14:27:19 +02:00
leonarski_f e3e1e97712 GUI: update abr_tweak_panel default abr step in um 2025-07-17 14:27:19 +02:00
GotthardG 14c8780616 Refactor WebSocket handling and remove redundant functions
Improved error handling for WebSocket connections by wrapping `ws.run_forever()` in a try-except block. Simplified `tellupdater` by removing unused functions (`convert_pucks` and `pucks_equal`) and ensuring consistent puck state updates. Enhanced logging for better traceability during WebSocket operations.
2025-07-16 16:56:38 +02:00
leonarski_f 09be1864a5 GUI: Run viewer to check online X-ray images 2025-07-16 16:49:46 +02:00
leonarski_f 415ba64b78 DAQ: Automation (WIP) 2025-07-15 16:29:31 +02:00
leonarski_f 032dfec906 DAQ: Handle transmission/dtz null 2025-07-15 14:46:12 +02:00
leonarski_f 9a3655a8e1 DAQ: Automated scan (WIP) 2025-07-15 12:55:03 +02:00
leonarski_f a3dc4fff28 SCRIPTS: Addded knife edge scan jupyter notebook 2025-07-15 10:16:08 +02:00
leonarski_f 2caef2a632 DAQ: WIP on zoom 2025-07-15 09:57:17 +02:00
leonarski_f e879c1b757 GUI: More adjustments to paths 2025-07-15 09:57:17 +02:00
leonarski_f 47d24e17d1 GUI: Force paths for common data collection modes 2025-07-15 09:57:17 +02:00
leonarski_f 18e5520f35 DAQ: Add def_bl_zoom() function 2025-07-15 09:57:17 +02:00
leonarski_f b99a126578 GUI: Use 4 digit year 2025-07-15 09:57:17 +02:00
leonarski_f cac3b67dde DAQ: Always add "raster/" for rasters (remove {type} in GUI) 2025-07-15 09:57:17 +02:00