Commit Graph

68 Commits

Author SHA1 Message Date
Anne de Jong 1fb98412b2 Removed hard-coded Numpy include dir
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 1m35s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2024-03-27 13:55:24 +01:00
Anne de Jong bf06402b11 BUGfix of segfault. Very subtle. ThreadedInDataHandler could be deleted, while a task was just pushed to the thread pool. Then, when the task is finally run, the object could be deleted, as the _thread_running flag was not set. Besides this, we made some fixes that makes sure that the handles to a Recording class are stored as a weakref inside of the C++ code. This makes it easier to garbage-collect a recording, even when the IndataHandler is still running. 2024-03-06 21:41:04 +01:00
Anne de Jong 6b337df2a9 Bugfix in channel counter for getHighestEnabledOutChannel, added Api -subapis for Portaudio backend. Switch to defaulting Portaudio as audio backend. Added PulseAudio as extra sub-api to default compile in portaudio
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 3m2s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2024-01-25 15:31:53 +01:00
Anne de Jong c610c6350d Implemented reference measurements, and renaming as method in Measurement object. 2023-12-18 12:37:46 +01:00
Anne de Jong 914da89819 build(Testing): Not yet 2023-07-18 17:06:40 +02:00
Anne de Jong 790eb41a26 Switch to pyproject build structure 2023-07-14 16:40:57 +02:00
Anne de Jong d9a3cfd627 Made default preset for compiled in DAQ backends in CMakeLists
continuous-integration/drone/push Build is failing Details
2023-06-15 09:57:06 +02:00
Anne de Jong 77b1848bb4 Made functions without correct return type compile time error 2023-06-14 21:24:29 +02:00
Anne de Jong 88624764e7 Rudymentary portaudio support. A stream callback is running. 2023-06-14 21:23:53 +02:00
Anne de Jong e274e12f82 Added ARMA_NO_DEBUG flag for release mode 2022-10-18 22:31:25 +02:00
Anne de Jong ec689621b5 Added Armadillo backend for Fft's. This one seems to work properly. Added some tests code for daq and StreamMgr in C++. Fixed a stray of a debug dmat somewhere in lasp_daqdata. 2022-10-12 15:02:42 +02:00
Anne de Jong fae906884e Textual improvements. Formatting (Neoformat) improvements. Let DataTypeDescriptor be a reference (to a global const std map in Daq class. Improved naming of certain functions. Better DaqData implementation, now we make sure memory alignment is good at all times. Switched functions arguments in DaqData constructor to comply with all other cases of first frame, then channel. Better naming of stream in RtAudio. Better handling of faulty function calling in RtAudio start(). Bugfix in RtAudio, did call right Daq::dtypeDescr() function --> result was that only first channel was copied to all channels. Added extra check in StreamMgr. Removed unnecessary TypedDaqData class. Use a safe queue in threaded in data handler. We can now remove the Boost code for that. 2022-10-10 19:17:38 +02:00
Thijs Hekman e7f80ce741 Could not find Python on Requiem. Added include_directories. Fixed bug of old Armadillo place 2022-10-07 09:34:32 +02:00
Anne de Jong 12d6826140 Removed some compile warnings when compiling sub-projects. Removed warnings related to unknown pragmas in case of compiling without OpenMP support. Fixed some test problems 2022-10-05 13:39:45 +02:00
Anne de Jong 31ead60469 Added RtAudio and UlDAQ as subprojects that are compiled in. Fixed proper connection of UlDAQ. Set default sensitity to 1.0 for a new DaqChannel. Segfault bug fixed in DaqData::copyToRaw. Scan in background for devices when StreamMgr() is initialized. Fixed bug in storing of DaqConfigs to lasp_shelve. Set RtAudio to 5.2.0. 2022-10-05 11:27:46 +02:00
Anne de Jong 288e7c8dc5 Input stream and output stream both running. Added lockfree boost dependency to git modules, removed carma build as it is not required and every time again downloads Armadillo. Added functions to enable / disable all channels at once. Fixed a bug with RtAudio input streams. Fixed a bug in StreamMgr leading to segfaults (how to: use std::move ;)). 2022-09-27 17:20:45 +02:00
Anne de Jong 5ce5fba50b Sweep bug fixed. There is still something weird with RtAudio: only one channel is outputting signal. 2022-09-22 21:02:41 +02:00
Anne de Jong 70891ceaf4 Switched to OpenMP for parallellizing for loops. Bugfixes in PowerSpectra() class. Added tests to check Parsevall hold. Improved lots of comments. Added module groups. Use CMake to specify code version number. Device info should be obtained from StreamMgr in Python code. 2022-09-03 20:59:14 +02:00
Anne de Jong 7ca52695da First work on avpowerspectra implementation. Added stubs for all other code that needs to be implemented in C++ as well. 2022-08-07 21:13:45 +02:00
Anne de Jong 12cf9586eb DaqConfiguration(s) back in place. Time to couple some stuff to ACME 2022-08-01 17:26:22 +02:00
Anne de Jong da99618fc3 Some comment improvement and cleanup 2022-07-25 22:29:42 +02:00
Anne de Jong 6a006e27f9 Output of a sine wave now works. Pfff 2022-07-20 14:58:48 +02:00
Anne de Jong 7095f9d5e7 Intermediate commit. Ready for some serious testing. 2022-06-29 12:25:32 +02:00
Anne de Jong 7eaaf43653 Inbetween pybind11 commit. Nothing working. 2022-06-13 19:35:41 +02:00
Anne de Jong f635cac209 First work on going to Pybind11. Rewritten the code for the UlDaq significantly. Much cleaner, but still contains bugs. 2022-05-23 17:26:29 +02:00
Anne de Jong 16390352dc Removed stupid handleMessages from streammanager. 2022-05-17 13:53:07 +02:00
Anne de Jong cf0b4cf283 Added export of compile commands. Stop make on first error 2022-01-28 14:11:58 +01:00
Anne de Jong b570b4ba18 One definition in CMakeLists.txt not required 2021-12-27 12:08:53 +01:00
Anne de Jong accde58b5b Set CMake minumum version to 3.12, for PythonLibs finding 2021-11-01 11:47:12 +01:00
Anne de Jong 9694173a65 Bugfix in fft, set Blas vendor to openblas 2021-10-19 11:30:39 +02:00
Anne de Jong 6f782f237e Bugfix: wrong #define statements, resulting in no Audio APIs at all 2021-10-04 20:54:36 +02:00
Anne de Jong e958b8361a Forgot to add 32-64 bits definitions to include in wrappers.pyx. Now fixed. Removed constrained on h5py version. This might result in new instabilities, but we expect it to be more fixed. 2021-10-04 15:53:22 +02:00
Anne de Jong b159f4d144 Major cleanup of build code (CMake related). First steps towards C++ and C-compiler safety. Also first steps made to get single precision back to working 2021-09-14 20:05:42 +02:00
Anne de Jong f76c89a688 Merge branch 'develop' of ssh://code.ascee.nl:12001/ASCEE/lasp into develop 2021-05-24 16:08:17 +02:00
Anne de Jong 7ae0de3a06 Some improvements in build, some comments added 2021-05-23 22:53:48 +02:00
Anne de Jong 0c1eef5388 Fixed error in build flags on Linux 2021-05-23 19:23:53 +02:00
Anne de Jong 9005bda017 Fixed some bugs. Lrftubes is temporarily disabled on this branch 2021-05-23 10:15:48 -07:00
Anne de Jong 1678a0767a Fixed some bugs to let it work in MinGW compilation 2021-05-23 07:38:41 -07:00
Anne de Jong 7153096552 Fixed several bugs. Most serious one is a segfault for a stream without input. 2021-05-19 16:33:27 +02:00
Casper Jansen fa6fbbe12d Merge branch 'develop' of ssh://code.ascee.nl:12001/ASCEE/lasp into develop 2021-05-07 11:22:39 +02:00
Casper Jansen bc1e0eb51c Fixed python version to 3.8 2021-05-07 11:22:28 +02:00
Anne de Jong 2caccb6b71 Fix lasp to Python3.8. 2021-04-22 11:44:20 +02:00
Anne de Jong 5c3cae730f Bugfix for something that does not seem to work anymore with Numpy. np.int16.itemsize is not a number anymore. 2021-01-28 22:16:09 +01:00
Anne de Jong dd0b011fa3 Disabled annotation. Improved compilation flag for Cython 2020-11-19 11:11:38 +01:00
Anne de Jong f54ac216c1 Major cleanup of compilation warnings. 2020-10-16 20:37:02 +02:00
Anne de Jong bc9639f10c Inbetween state. Nothing is working 2020-10-14 09:42:19 +02:00
Anne de Jong a3963c4595 Working in CPP code, with multiple-api-api 2020-10-06 21:29:02 +02:00
Anne de Jong a73ef3d7a8 First work on moving RtAudio Api back to C++. 2020-10-04 22:29:54 +02:00
Anne de Jong 2775e29fab Updated some definitions 2020-10-02 10:01:18 +02:00
Anne de Jong 287b0cfe83 Big change to new stream configuration. Possibility to include output channels back to input 2020-08-03 20:17:52 +02:00