Commit Graph

9469 Commits

Author SHA1 Message Date
maliakal_d 1483b62157 Revert "Exposing the ctb api tests now to CI"
Build on RHEL9 / build (push) Successful in 4m34s
Build on RHEL8 / build (push) Successful in 4m37s
This reverts commit 411fad1b27.
2026-01-06 11:53:42 +01:00
maliakal_d 411fad1b27 Exposing the ctb api tests now to CI
Build on RHEL9 / build (push) Successful in 3m17s
Build on RHEL8 / build (push) Successful in 4m59s
2026-01-06 09:49:52 +01:00
maliakal_d e66c4125b0 Merge branch 'developer' into fix/pyfixture_test 2026-01-06 09:33:25 +01:00
maliakal_d 3dd07bf2be Dev/define cmd (#1312)
Build on local RHEL9 / build (push) Successful in 1m25s
Build on RHEL9 / build (push) Successful in 3m15s
Build on local RHEL8 / build (push) Successful in 3m31s
Build on RHEL8 / build (push) Successful in 4m44s
* basic ctb config api for register and bit names

* tests for define and definelist pass. yet to implement using them for reg, setbit, clearbit and getbit

* improved autocomplete for getbit,setbit, clearbit

* validate autocomplete

* definelist has no put

* updating help

* converting char array+int in runtimeerror compiles but throws at runtime.Fixed.Tested for it. Also check if string or int before using getregisterdefinitonbyvalue to see if it threw to call the other function. because both of it can throw and we should differentiate the issues for both

* removed std::vector<std::pair<string,int> to std::map<string, int> for defiitions list

* Dev/define cmd tie bit to reg (#1328)

* strong type

* moved everythign to bit_utils class

* pybindings

* added tests for python

* removed duplicates

* removed bit names in reg

* changed BitPosition to BitAddress

* Using define reg/bit from python (#1344)

* define_bit, define_addr in python. 
* setBit/clearBit takes int or addr

* added example using bits

* split define into 2 commands define_reg and define_bit, definelist into 2: definelist_reg and definelist_bit

* allow string for register and bit names in c++ api

* refactor from github comments

* naming refactoring (getRegisterDefnition to retunr name and address specifically

* added marker for 8 cmd tests connected to define, changed macro to static constexpr

* changed bitPosition from int to uint32_t

* got rid of setbitposition and setaddress, instead overloaded constructor to take in strings so that the conversion from string to bit address members, takes place within the class for easy maintainance in case type changes

* Removing implicit conversions:
RegisterAddresss and RegisterValue: Removed the implicit conversions.
RegisterAddress: Changed member name from address_ to value_ and method as well to value().
RegisterValue: Also added | operator to be able to concatenate with uint32_t. Same in python bindings (but could not find the tests to modify

* Allowed concatenation with other RegisterValue, made them all constexpr

* fix a ctbConfig test

* Maponstack works with integration tests, but need unit tests

* tests on mapstack

* fixed ctb tests and FixedString being initialized with gibberish

* removing parsing from string inside the class RegisterAddress, BitAddress and RegisterValue

* updated python bindings

* fixed bit utils test

* renaming getRegisterDefintiionAddress/Name=>getRegisterAddress/Name and similary for getBitDefinitionAddress/Name

* updated python bindings

* fix tests (format)

* a few python tests added and python bindings corrected

* replaceing str with __str__ for bit.cpp

* repr reimplemented for bit.cpp

* removed make with registerAddress etc

* starting server for tests per session and nor module

* killprocess throws if no process found-> github runs fails, changed to pkill and not throw

* clean shm shouldnt raise, in ci binary not found

* ignoring these tests for CI, which fail on CI because simulators are not generated in CI. This is in another PR, where it should work

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
Co-authored-by: froejdh_e <erik.frojdh@psi.ch>
2026-01-05 15:10:46 +01:00
mazzol_a d137b31776 clear_roi after every test to bring it back to default state, test passing multiple parameters
Build on RHEL9 / build (push) Successful in 3m14s
Build on RHEL8 / build (push) Successful in 5m21s
2025-12-19 09:45:21 +01:00
mazzol_a 223355c4b9 fixed python simulator test fixture 2025-12-18 19:07:33 +01:00
mazzol_a 7d1d5e9809 Merge pull request #1347 from slsdetectorgroup/fix/self-assign
Build on local RHEL9 / build (push) Successful in 1m22s
Build on local RHEL8 / build (push) Successful in 3m26s
Build on RHEL9 / build (push) Successful in 3m45s
Build on RHEL8 / build (push) Successful in 4m52s
clang-tidy [unhandled-self-assignment]
2025-12-17 13:01:17 +01:00
froejdh_e cfaaf5a973 removed depricated check, handle self assignment 2025-12-16 16:35:53 +01:00
mazzol_a 497b3ed00e Merge pull request #1343 from slsdetectorgroup/dev/update_release_notes
Build on local RHEL9 / build (push) Successful in 1m23s
Build on local RHEL8 / build (push) Successful in 3m26s
Build on RHEL9 / build (push) Successful in 3m35s
Build on RHEL8 / build (push) Successful in 5m10s
updated release notes
2025-12-11 09:52:56 +01:00
mazzol_a 300a296c20 updated release notes 2025-12-10 16:21:00 +01:00
mazzol_a 01e392b112 Merge pull request #1342 from slsdetectorgroup/dev/dbitorder
Build on local RHEL9 / build (push) Successful in 1m22s
Build on local RHEL8 / build (push) Successful in 3m26s
Build on RHEL9 / build (push) Successful in 3m49s
Build on RHEL8 / build (push) Successful in 4m31s
Preserve order in receiver dbit list
2025-12-04 16:03:48 +01:00
mazzol_a 5409cec73e adapted test to test no reorder behavior
Build on RHEL9 / build (push) Successful in 4m12s
Build on RHEL8 / build (push) Successful in 4m30s
2025-12-04 10:58:37 +01:00
Erik Fröjdh 1c31a85a43 added function to remove duplicates, preserve order of dbit 2025-12-03 12:14:35 +01:00
muelle_m1 134137ead0 build RH8 in conda env
Build on local RHEL8 / build (push) Successful in 3m24s
Build on RHEL9 / build (push) Successful in 3m24s
Build on local RHEL9 / build (push) Successful in 1m21s
Build on RHEL8 / build (push) Successful in 5m25s
2025-11-27 16:28:21 +01:00
muelle_m1 6d3922f487 typo
Build on RHEL9 / build (push) Successful in 3m24s
Build on RHEL8 / build (push) Successful in 5m14s
Build on local RHEL9 / build (push) Successful in 1m22s
Build on local RHEL8 / build (push) Successful in 3m23s
2025-11-27 15:27:17 +01:00
muelle_m1 f14cfb0b31 deploy python ui
Build on local RHEL9 / build (push) Successful in 1m23s
Build on local RHEL8 / build (push) Successful in 3m23s
Build on RHEL9 / build (push) Successful in 4m26s
Build on RHEL8 / build (push) Has been cancelled
2025-11-27 15:21:34 +01:00
muelle_m1 cf4e6b65c1 Merge branch 'dev/NFS_testing' into developer 2025-11-27 11:00:29 +01:00
muelle_m1 0da80cd898 local runners only for developer
Build on RHEL9 / build (push) Successful in 3m53s
Build on RHEL8 / build (push) Successful in 5m30s
2025-11-27 10:43:51 +01:00
mazzol_a 8e7921ae45 Merge pull request #1339 from slsdetectorgroup/dev/python_cmd_for_ROI
Build on RHEL9 / build (push) Successful in 4m30s
Build on RHEL8 / build (push) Successful in 5m46s
Dev/python cmd for roi
2025-11-26 15:29:40 +01:00
mazzol_a b90851a855 clang-format 12 2025-11-26 14:15:04 +01:00
mazzol_a 683accd914 fix unsuccesful merge in RELEASE.txt 2025-11-26 14:04:55 +01:00
mazzol_a 30e82e4740 removed tests for eiger 2025-11-26 13:51:38 +01:00
mazzol_a 08486b9812 rx_roi also accepts sequence of 2 ints 2025-11-26 13:51:22 +01:00
mazzol_a a5c661ce22 another bug for xilinx in test script 2025-11-26 13:51:08 +01:00
mazzol_a 50448cefb4 Code Review 2025-11-26 13:50:45 +01:00
mazzol_a c1e5cfa101 fixed virtual detector test scripts 2025-11-26 12:25:25 +01:00
mazzol_a ae8c9175bf disable user id and port test 2025-11-26 12:24:48 +01:00
mazzol_a e7f5a2aa11 added colorama in github workflows 2025-11-26 12:24:27 +01:00
mazzol_a cad44943c3 wrapped virtual detector setup in a test fixture 2025-11-26 12:24:07 +01:00
mazzol_a d4f8049623 added tests 2025-11-26 12:23:40 +01:00
mazzol_a 925cd55b1c API also allows single sequence for single ROI 2025-11-26 12:23:22 +01:00
mazzol_a ec11ba5a54 added typecaster for slsdefs::ROI and added setter and getter for ROI 2025-11-26 12:23:04 +01:00
muelle_m1 eea4dca449 remove branch restrictions
Build on local RHEL9 / build (push) Successful in 1m44s
Build on local RHEL8 / build (push) Successful in 4m34s
Build on RHEL9 / build (push) Successful in 4m31s
Build on RHEL8 / build (push) Successful in 5m47s
2025-11-26 09:11:55 +01:00
muelle_m1 3285221e8a added RH9 workflow
Build on local RHEL8 / build (push) Successful in 4m37s
Build on RHEL8 / build (push) Successful in 5m18s
Build on RHEL9 / build (push) Successful in 5m26s
Build on local RHEL9 / build (push) Successful in 1m54s
2025-11-25 17:56:20 +01:00
Erik Fröjdh f32fcf1e88 Using system libzmq in conda builds (#1327)
Build on RHEL8 / build (push) Successful in 5m18s
Build on RHEL9 / build (push) Successful in 5m21s
* system (conda) libzmq
* added python 3.14 and bumped cibuildwheel version
2025-11-25 16:53:20 +01:00
muelle_m1 3ff199822d change path to RH8
Build on local RHEL8 / build (push) Successful in 4m37s
Build on RHEL8 / build (push) Successful in 5m13s
Build on RHEL9 / build (push) Successful in 6m0s
2025-11-25 16:37:42 +01:00
brueckner_m 0ba9a269a1 New this build bin path script (#1335)
Build on RHEL8 / build (push) Successful in 5m34s
Build on RHEL9 / build (push) Successful in 5m54s
* better this_build_bin_path script
* Put new values first in PATH and PYTHONPATH. Remove LD_LIBRARY_PATH
2025-11-25 16:29:48 +01:00
muelle_m1 afc51c9771 testing NFS deploy 2025-11-25 16:14:33 +01:00
mazzol_a 1cf9dc21ab Merge pull request #1326 from slsdetectorgroup/doc/exptime
Build on RHEL9 / build (push) Successful in 4m24s
Build on RHEL8 / build (push) Successful in 5m23s
added example to time conversion
2025-11-19 16:16:34 +01:00
mazzol_a 3b92ffb902 Merge branch 'developer' into doc/exptime
Build on RHEL9 / build (push) Successful in 3m27s
Build on RHEL8 / build (push) Successful in 5m31s
2025-11-19 09:58:21 +01:00
Martin Mueller 0490c0ef23 Merge pull request #1332 from slsdetectorgroup/MH02_debug
Build on RHEL9 / build (push) Successful in 3m43s
Build on RHEL8 / build (push) Successful in 5m18s
MH02 change clock switching method during periphery reset
2025-11-17 13:40:43 +01:00
muelle_m1 af2c6eca0c MH02 change clock switching method during periphery reset 2025-11-10 10:35:20 +01:00
Erik Fröjdh d3dc92b18b Using find_package(Threads REQUIRED) instead of linking pthread directly (#1324)
Build on RHEL9 / build (push) Successful in 4m30s
Build on RHEL8 / build (push) Successful in 4m42s
* Linking to Threads::Threads instead of pthread directly 
* moved rt linking to slsSupportObject and only enable for linux
2025-10-27 16:30:40 +01:00
froejdh_e e243af045d added example to time conversion 2025-10-27 16:28:36 +01:00
Erik Fröjdh 1d66f1d26d Experimental support for using the client on macOS (Darwin) (#1321)
Build on RHEL9 / build (push) Failing after 32s
Build on RHEL8 / build (push) Failing after 4m40s
* shorter SHM names on macOS
* fix segfault on macOS when string is empty
* apple version of read exe path
* ifdef for linux specific API
* fixed test for shm and udp socket
* updated release notes
2025-10-22 15:19:36 +02:00
Erik Fröjdh 9d40220274 Disable building of shared libraries by default (#1320)
Build on RHEL9 / build (push) Failing after 3m9s
Build on RHEL8 / build (push) Failing after 4m37s
* Disable building of shared libraries by default
2025-10-21 18:09:42 +02:00
Erik Fröjdh 41989836e7 added the deploy workflows for conda (#1301)
Build on RHEL8 / build (push) Failing after 5s
Build on RHEL9 / build (push) Failing after 4m27s
2025-10-21 11:42:36 +02:00
Erik Fröjdh db91f06c02 added option to use system zmq (#1318)
* added option to use system zmq
* added notes in release.txt
2025-10-21 11:15:51 +02:00
maliakal_d 5041fd7fef Dev/xilinx set power (#1316)
Build on RHEL9 / build (push) Failing after 3m5s
Build on RHEL8 / build (push) Failing after 5m10s
* ctb updates not in release notes

* xilinx power similar to ctb,except no vchip
2025-10-16 13:57:11 +02:00
Martin Mueller d2560aa7f1 Merge pull request #1315 from slsdetectorgroup/bug/only_plot_one_adc
Build on RHEL9 / build (push) Failing after 3m0s
Build on RHEL8 / build (push) Failing after 4m59s
2025-10-15 10:00:13 +02:00