Skip to content

Commit 7d2c3cc

Browse files
ericcantonclaude
andauthored
Power mode (#6)
* add way to turn detrend off. update python api to expose it. * Add stacked per-axis spectrograms (T, F, C) to senpy API (#5) * Add StackedSpectrogramResult and compute_stacked_spectrograms to senpy API Introduces per-axis NUFFT spectrogram stacking along a channel axis: - StackedSpectrogramResult: container for (T, F, C) spectral tensors - STACKED_SPECTROGRAM_CHANNELS: default channel list ["x", "y", "z", "mag", "jerk"] - compute_stacked_spectrograms(): computes independent NUFFT spectrograms for each channel (x, y, z, magnitude, jerk) and aligns them to a shared time grid before stacking into a (T, F, C) array - Tests covering shape, channel parity with standalone compute_nufft_spectrogram, subset channels, and rejection of unknown channel names https://claude.ai/code/session_01REqMjHZCGxWXDYAmiu9SE4 * clean up and optimize * compute and return norm when spectrogram is requested, instead of copying complex to python and then doing norm. * clean up and optimize the api. accept version 2.0 is here. * add note that psd = power already from cpp definition --------- Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent efa4e15 commit 7d2c3cc

6 files changed

Lines changed: 442 additions & 72 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ add_library(sensor_processing SHARED
6666
# Set library properties
6767
set_target_properties(sensor_processing PROPERTIES
6868
CXX_VISIBILITY_PRESET default
69-
VERSION 1.0.0
70-
SOVERSION 1
69+
VERSION 2.0.0
70+
SOVERSION 2
7171
)
7272

7373
# Include directories
@@ -108,4 +108,4 @@ install(TARGETS sensor_processing
108108
)
109109

110110
# Export compile commands for IDEs
111-
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
111+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

senpy/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.0"
1+
__version__ = "2.0.0"

0 commit comments

Comments
 (0)