Skip to content

Fix pick-spikes auto-detect window and QSettings int cast#28

Merged
oliche merged 4 commits into
mainfrom
fix_pick_window
May 21, 2026
Merged

Fix pick-spikes auto-detect window and QSettings int cast#28
oliche merged 4 commits into
mainfrom
fix_pick_window

Conversation

@oliche
Copy link
Copy Markdown
Member

@oliche oliche commented May 21, 2026

Closes #18. Original fix by @JoeZiminski — rebased on main and cleaned up.

Changes

  • Replace hard-coded S_RANGE/TR_RANGE with view-percentage-based values (2%/5% of current zoom) so the auto-detect window does not escape the visible range at high sample rates
  • Use viewBox_seismic.viewRange() public API instead of .state["viewRange"] internal dict
  • Remove dead self.plotItem_seismic.windowState line
  • Fix QSettings.value() returning str for nfft/nperseg in ImShowSpectrogram, causing TypeError on // — cast to int at the property level

@oliche oliche merged commit bc079bc into main May 21, 2026
5 checks passed
@oliche oliche deleted the fix_pick_window branch May 21, 2026 13:12
oliche added a commit that referenced this pull request May 21, 2026
oliche added a commit that referenced this pull request May 21, 2026
* Add more on running through exec.

* Add examples

* Add examples.

* Small tidy ups.

* Fix typos.

* Fix linting.

* Remove stale create_app stub and add script API regression tests

* Update changelog with PR references for #28 and #29

---------

Co-authored-by: JoeZiminski <Joseph.j.ziminski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants