Skip to content

Instantly share code, notes, and snippets.

View HENDRIX-ZT2's full-sized avatar
💭
🐑

HENDRIX-ZT2

💭
🐑
View GitHub Profile
@fschwar4
fschwar4 / sinc_interpolation.py
Last active June 26, 2025 14:38
Fast Python implementation of Whittaker–Shannon / sinc / bandlimited interpolation.
import finufft
import numpy as np
import scipy.fft as sfft
from numpy.typing import NDArray
def sinc_interpolation(x: NDArray, s: NDArray, u: NDArray) -> NDArray:
"""Whittaker–Shannon or sinc or bandlimited interpolation.
Args:
@ksvbka
ksvbka / worker-threadpool.py
Created December 19, 2018 15:29
Demo worker threadpool and report progress in PyQT.
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QVBoxLayout, QPushButton, QWidget
from PyQt5.QtCore import QObject, QRunnable, QThreadPool,pyqtSlot, pyqtSignal
import time
import traceback, sys
class WorkerSignals(QObject):
'''
Defines the signals available from a running worker thread.
Supported signals are: