Skip to content

Instantly share code, notes, and snippets.

View tspspi's full-sized avatar

tspspi

View GitHub Profile
@tspspi
tspspi / characterizs.py
Created March 2, 2023 13:17
Fitting function for QUAK/ESR bias amplifiers
import matplotlib.pyplot as plt
import numpy as np
import sys
from time import sleep
from pymso5000.mso5000 import MSO5000
from pyka3005p.ka3005pserial import KA3005PSerial
scanchannel = 2
@tspspi
tspspi / udpmcasttest.py
Created November 6, 2022 01:30
UDP communications and multicast in Python (simple blocking sample)
# The same exampel as udptest.py but transmitting
# and receiving from a multicast group
UDP_IP = "239.0.0.16"
UDP_PORT = 1234
if len(sys.argv) < 2:
print("Missing mode")
sys.exit(1)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspspi
tspspi / Thermal noise.ipynb
Created June 15, 2022 14:01
Thermal noise calculation for QUAK/ESR
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspspi
tspspi / simpleoaallan.py
Created June 14, 2022 14:06
Simple Allan deviation in time domain
# Simple and direct overlapping Allan deviation
# for stability analysis in time domain (i.e. "phase" samples)
def overlappingAlanDeviationTimeDomain(timestamps, samples, overlapWindowSize = 2):
oadev = []
taus = []
tau0 = (timestamps[len(timestamps)-1] - timestamps[0]) / (len(timestamps))
for nLimit in range(2*overlapWindowSize, len(timestamps)):
tau = tau0 * nLimit
@tspspi
tspspi / krylovlinear01.ipynb
Last active March 21, 2022 10:56
Steepest descent, Conjugate gradinet and Generalized minimal residual
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspspi
tspspi / qrdecomposition.ipynb
Created March 12, 2022 21:03
Basics-QR decomposition using Givens rotations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspspi
tspspi / leastsquares.ipynb
Last active March 21, 2022 10:55
Basics-Least squares using QR decomposition
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspspi
tspspi / LICENSE.md
Created November 9, 2021 15:20
A simple daemon skeleton for Python 3.x

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without
@tspspi
tspspi / LICENSE.md
Created September 12, 2021 17:26
Example program for synchronous usage of AD7705 with an ATMega2560

Copyright (c) Thomas Spielauer. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.