Wykres commitów

448 Commity (223e7e2c357d250113afaba630ddd5257a20bff5)

Autor SHA1 Wiadomość Data
nyanpasu64 af41500266 Add scan_ratio parameter (scan time = time_visible_ms * scan_ratio)
Remove hardcoded scanning distance
2018-07-16 18:23:31 -07:00
nyanpasu64 2ad624be03 RendererConfig calculates orientation based on nrows or ncols.
- Ensure either nrows or ncols is set.
- If neither, set ncols=1 (single column).
- Remove rows_first flag.

Add test_renderer.py
2018-07-15 23:42:17 -07:00
nyanpasu64 8b71df0bbb Replace samples_visible with time_visible_ms
Factor out wave-reading code from MatplotlibRenderer backend.
MatplotlibRenderer backend hopefully plots arbitrary data, and can be
swapped with other backends.
2018-07-15 23:42:17 -07:00
nyanpasu64 cb3e7265ca Fix misspelled setup.py dependency (dataclasses) 2018-07-15 19:59:50 -07:00
nyanpasu64 0bb26a1c20 Fix unit tests, add CorrelationTrigger.Config.use_edge_trigger 2018-07-15 06:04:50 -07:00
nyanpasu64 56502d876f Reorganize and cleanup imports 2018-07-15 05:55:00 -07:00
nyanpasu64 7a5e0b11f1 Mark Wave(wcfg: WaveConfig) as Optional 2018-07-15 05:54:45 -07:00
nyanpasu64 20cbdab20f Add use_edge_trigger flag to CorrelationTrigger, tweak config parameters 2018-07-15 04:26:54 -07:00
nyanpasu64 e23145e193 Fix ZeroCrossingTrigger slowdown by removing `idx in range(...)` 2018-07-15 04:05:41 -07:00
nyanpasu64 709661dd93 Add Renderer.nwaves, refactor CorrelationTrigger and Wave 2018-07-15 04:04:53 -07:00
nyanpasu64 7a615c6d2a Removed unused utils/fourier.py 2018-07-15 04:01:13 -07:00
nyanpasu64 d7f15b233b Add ZeroCrossingTrigger and call it from CorrelationTrigger 2018-07-15 03:11:58 -07:00
nyanpasu64 9b9288f7ad Rename Trigger.get_trigger(offset) to index 2018-07-15 03:11:17 -07:00
nyanpasu64 90b2dc5afd Add type hints to Wave.__getitem__ 2018-07-15 03:09:48 -07:00
nyanpasu64 b01251fd21 Fix CorrelationTrigger and remove debugging code 2018-07-14 16:07:06 -07:00
nyanpasu64 1b50590ecc Remove debugging code (SHOW_TRIGGER) 2018-07-14 15:45:07 -07:00
nyanpasu64 0e575d9792 Fix CorrelationTrigger 2018-07-14 15:42:10 -07:00
nyanpasu64 cd33fcee6e Add unit tests (interactive for now) 2018-07-14 03:36:49 -07:00
nyanpasu64 a889903f4f Rename CorrelationTrigger._prev_buffer to _buffer, mark members private 2018-07-14 03:36:16 -07:00
nyanpasu64 4a9ba2f265 Exclude folders from Pycharm 2018-07-14 03:35:41 -07:00
nyanpasu64 6ccf84ff2d Replace TriggerConfig with CorrelationTrigger.Config. Add responsiveness. 2018-07-14 02:06:07 -07:00
nyanpasu64 c7ca023163 [wip] Half-working trigger 2018-07-13 23:54:14 -07:00
nyanpasu64 a35c3fc9bc Move renderer, triggers, wave to separate file 2018-07-13 20:58:00 -07:00
nyanpasu64 18c5720c54 Extract Wave.get(begin, end) from Wave.get_around 2018-07-13 20:57:19 -07:00
nyanpasu64 0e7f15ffbc [wip] Add buffer to CorrelationTrigger 2018-07-13 20:57:12 -07:00
nyanpasu64 df53a09328 Load waveform data from .wav. Rescale and zero-pad data. 2018-07-13 06:57:00 -07:00
nyanpasu64 48c4b14f5d Rename RendererCfg, TriggerCfg to RendererConfig, TriggerConfig 2018-07-13 06:55:17 -07:00
nyanpasu64 1116a9d686 Disable erroneous inspection warning, from spaces around [1:2] slices 2018-07-13 06:38:35 -07:00
nyanpasu64 1a3aa5b3cb Rename Trigger to CorrelationTrigger with base class Trigger 2018-07-13 05:43:33 -07:00
nyanpasu64 f32d4326cf Disable spurious `type: np.ndarray[]`` warnings 2018-07-13 05:43:11 -07:00
nyanpasu64 013488a168 Use TriggerCfg as factory 2018-07-13 05:37:22 -07:00
nyanpasu64 b69c232e63 Add TriggerCfg which acts as factory 2018-07-13 05:08:19 -07:00
nyanpasu64 a19c02974f Reorganize and cleanup code, remove unused class Coords 2018-07-13 04:49:59 -07:00
nyanpasu64 beae6e8b2b Switch to integrated Brownian noise 2018-07-13 04:09:11 -07:00
nyanpasu64 a2fd00ef4e Add FPS profiling 2018-07-13 04:05:31 -07:00
nyanpasu64 faef07ba5c Set vertical scale properly 2018-07-13 03:55:56 -07:00
nyanpasu64 bee76bdd0b Set horizontal scale properly 2018-07-13 03:48:36 -07:00
nyanpasu64 3ee8f544c0 the plot almost works 2018-07-13 02:33:44 -07:00
nyanpasu64 131281268d Use pyplot to generate Figure and Axes[]. Remove figure gaps. 2018-07-13 02:29:51 -07:00
nyanpasu64 a14472b7ae [wip] Create Axes using subplot(), flatten to 1D array in custom order 2018-07-13 02:20:21 -07:00
nyanpasu64 0a11363f7b [wip] Plot waves to screen 2018-07-13 00:41:11 -07:00
nyanpasu64 e049260044 delete unused code 2018-07-12 19:30:35 -07:00
nyanpasu64 3d13666a72 reformat 2018-07-12 19:30:07 -07:00
nyanpasu64 4274744142 fixed the CLI 2018-07-12 19:29:05 -07:00
nyanpasu64 5dc16ea7de meh 2018-07-12 18:37:18 -07:00
nyanpasu64 3545240b9e progress 2018-07-12 17:48:51 -07:00
nyanpasu64 e0bcd53be4 initial code 2018-07-12 15:27:26 -07:00
nyanpasu64 5addd4f9d1 .idea 2018-07-12 15:26:59 -07:00