Commit Graph

28 Commits

Author SHA1 Message Date
Johannes Pohl
c7a9b1149c make minimum message length configurable (#354)
* move pause threshold to advanced settings dialog

* fix logger message format

* increase timeout for travis

* decrease values for travis

* remove deprecated group

* revert changes

* cleanup tests

* consider pause_threshold and message divisor in apply to all action

* add unittest for pause threshold

* add logic for minimum message length

* try parallel testing with travis

* revert parallel testing

* show advanced button only for ask

* save pause_threshold and message length divisor in project file

* Changed help text for ASK features
2017-11-13 14:54:12 +01:00
Johannes Pohl
70d8968adb Add import for csv (#353) to fix #349
* add import for csv

* make codecov run instantly

* do not wait for appveyor with codecov

* add unittest for csv import

* clean up after yourself

* use codecs to open csv file

* use csv module for csv reading

* rename variable

* update coveragerc
2017-11-02 12:55:19 -05:00
jopohl
77d0061a78 add testfile for three channels 2017-10-28 12:33:46 +02:00
Johannes Pohl
682ebcf946 .proto and .fuzz can now also be named .proto.xml and .fuzz.xml
* This helps when opening these files with an external editor
* The default name suggestion for these files now also ends with .xml
2017-09-07 09:48:59 +02:00
jopohl
7c3bbe464a fix crash when opening protocol file with non project decoding 2017-09-02 21:19:13 +02:00
Johannes Pohl
f75e5787bf add spectrogram view and channel separation
* show getting start hint in interpretation

* add test for creating spectrogram

* add spectrogram page to signal frame
remove parent frame property from epic graphic view

* prototype for spectrogram drawing (has performance issues)

* enable yscale for spectrogram

* regen file

* enhance spectrogram performance by using QImage

* enable y scale for spectrogram

* add initial legend to spectrogram

* fix colormap location

* remove colormap legend

* add more colormaps

* make colormap configurable via ini

* make colormap configurable in settings

* make fft window size configurable

* rescale Y on signal frame resize

* adapt unittest to new api

* allow y move with drag for spectrogram view

* refactor painting backend

* enable vertical selection in spectrogram graphic view

* spectrum: fix order of y values

* use fliplr for compat

* add bandpass filter function

* add narrowband iir filter

* set lower bandwidth for test

* add windowed sinc to filter class and adapt unittest

* change default of hold shift to drag
This way making a selection does not require a key modifier by default

* add fft convolution

* add performance test for fft convolution

* speed up performance test

* fix error for small data sets

* add test for filtering channels

* use astype for compatibility with old numpy versions

* refactor context menu of graphic views

* remove fft convolve performance test to avoid random fails on CI

* fix spectrogram calculation

* fix spectrogram calculation

* improve stft performance

* show samples in view for spectrogram and allow deeper zoom

* enable zoom to selection for spectrogram

* enable start end and selection infos for spectrogram selection

* enable bandpass filtering from spectrogram

* fix selection start end behavior for spectrogram

* update spectrogram infos in start end edited

* add unittest for channel separation

* enhance architecture of spectrogram management

* add class SpectrogramSceneManager
* cache spectrogram
* fix x axis orientation
* move scene managers to painting

* redraw on fft size update

* add lod slider for spectrogram

* remove unused stuff

* add tooltip for lod slider

* update selected bandwidth on sample rate changed

* add update for gv signal on resize

* fix fftshift parameter

* remove xflip as this is corrected by fftshift now

* remove lod slider as it leads to confusion and low lods are hard to see

* clip f_low and f_high

* update spectrogram images on colormap change

* set loading cursor right before bandpass filtering signal

* add select all action with ctrl+a to graphic views

* use parameters from original signal for newly created signals

* fix noise level in unittest

* improve spectrogram performance by splitting image into segments

* avoid division by zero

* fix unittest

* improve signal redraw on resize

* add created signal right under original signal

* adapt unittest to filtered frame created under original signal

* add dialog for configure bandwidth and display default values

* make bandwidth configurable

* fix spectrogram scene rect for small signals

* make data min and data max for spectrogram configurable

* use object names for indexing settings as texts are not reliable

Some OSes insert & before texts probably for shortcuts

* use heuristic to choose normal or FFT convolution

* suggest a filename for unsaved signals based on their name

* fix subpath range calculation

* use window for subpath drawing to avoid flickering colors
2017-08-24 16:28:28 +02:00
Johannes Pohl
dd5717850a add unittest for external program with arguments 2017-07-12 13:29:44 +02:00
Johannes Pohl
7a8df73c75 improve ask demodulation by aggregating short pauses (#304) 2017-07-10 10:41:00 +02:00
jopohl
25cbeb97b5 add unittest for external decoding and fix Popen call 2017-07-08 13:06:06 +02:00
Johannes Pohl
fa12774090 add checksum integration
* add draft for crc configure dialog

* add ui file

* improve delegate sizing

* fix open editors function call placement

* consider system font size for optimal editor height

* fix font height on windows only as other OSes are fine with default

* simplify windows height special case

* add draft for crc configure dialog

* add ui file

* add tab widget to properties dialog + remove unneeded underline fonts

* rename type -> field type + add crclabel class

* cast labels to crclabel if field type gets changed

* dynamic tab creation in label dialog depending on special status labels

* integrate CRC widget to dialog

* use model for crc data ranges and enhance editor behaviour

* move default crc polynomials to class level

* make crc polynomial configurable in widget

* fix line edit validator + set crc polynomial on combobox change

* show crc status in label table

* fix unnittest polynomial assignment

* Index error catched, when dragging WSP-encoded data into generator

* show expected CRC in value table

* add action for updating automatically assigned message types

* add draft for crc configure dialog

* add ui file

* add tab widget to properties dialog + remove unneeded underline fonts

* rename type -> field type + add crclabel class

* cast labels to crclabel if field type gets changed

* dynamic tab creation in label dialog depending on special status labels

* integrate CRC widget to dialog

* use model for crc data ranges and enhance editor behaviour

* move default crc polynomials to class level

* make crc polynomial configurable in widget

* fix line edit validator + set crc polynomial on combobox change

* show crc status in label table

* fix unnittest polynomial assignment

* show expected CRC in value table

* add action for updating automatically assigned message types

* centralize bit view methods

* make start value and final xor configurable

* add Checksum Label Type + WSP Checksum subtype

* Ensure Start Value and Final XOR have same length as polynomial

* pad zeros at front

* add crc info label and fix sync between polynomial and xor values

* various fixes

* test wsp hash functionality

* minor fixes

* use array.array for parameters to make crcs comparable

* integrate crc to generation

* add unittest for cc1101

* set wait cursor when extracting archives

* remove unneeded status bar in interpretation

* set wait cursor when extracting archives in project manager

* fix size policy for analysis search line edit

* save checksum labels in project

* improve alignment

* remove double line edit

* add test for checksum integration in generator

* update coverage

* specify coverage format

* generate xml coverage report

* generate coverage report only for python 3.5

* generate coverage report only for python 3.5

* add variable to control coverage

* generate coverage report on success

* generate coverage report after success

* remove deprecated

* add virtualenv opt

* use codecov

* revert to deprecated

* Removed CRC and 'remove_preamble, remove_sync' from CC1101 Data Whitening

* repair unittests

* fix table copy selection

* use plain bits for checksum calculation in generation

* add parent
2017-07-02 20:47:46 +02:00
Johannes Pohl
dee6081da9 integrate filter 2017-05-28 13:48:02 +02:00
Johannes Pohl
39020cf86e add unittest for protocol label dialog 2017-02-15 19:17:38 +01:00
Johannes Pohl
2a2c410b7a enhance unittests for signal frame 2017-02-14 23:14:05 +01:00
jopohl
5f3fcdd887 add enocean test signal 2016-11-18 18:48:24 +01:00
jopohl
c1d7c4e235 add more unittests 2016-09-17 13:48:49 +02:00
jopohl
a1790be0ff fix testdata -> write original crc and not zeros 2016-09-08 14:07:17 +02:00
andynoack
997475ee2d awre on enocean 2016-08-30 10:19:17 +02:00
jopohl
ee8156fd11 Merge branch 'master' into awre 2016-08-29 08:57:09 +02:00
jopohl
91631af14e fix #95 2016-08-24 11:32:47 +02:00
jopohl
daafaa3c5b consistent addresses for awre test 2016-07-29 10:56:55 +02:00
jopohl
deac2ddbd0 find constants 2016-06-30 14:02:42 +02:00
andynoack
d0aabfbbc5 Delete Andreas_hats_kaputt_gemacht.xml 2016-06-28 10:50:08 +02:00
jopohl
6fbee090ff adapt filenames 2016-06-25 00:34:38 +02:00
jopohl
2e32e3af51 add class LabelAssigner and find sync with constant indices 2016-06-23 09:02:57 +02:00
jopohl
fe24ba2118 auto assign preamble 2016-06-15 15:06:34 +02:00
jopohl
5e62955a8d code and test for auto assign decodings 2016-06-13 20:28:32 +02:00
jopohl
800391c376 add initial testclass for auto assign labelsets 2016-06-09 12:11:38 +02:00
jopohl
b1ae51756c Inital Commit 2016-04-01 21:53:35 +02:00