Skip to content

Instantly share code, notes, and snippets.

Avatar

tspspi

View GitHub Profile
@tspspi
tspspi / udpmcasttest.py
Created Nov 6, 2022
UDP communications and multicast in Python (simple blocking sample)
View udpmcasttest.py
# 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)
View Shielding.ipynb
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 Jun 15, 2022
Thermal noise calculation for QUAK/ESR
View Thermal noise.ipynb
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 Jun 14, 2022
Simple Allan deviation in time domain
View simpleoaallan.py
# 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 Mar 21, 2022
Steepest descent, Conjugate gradinet and Generalized minimal residual
View krylovlinear01.ipynb
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 Mar 12, 2022
Basics-QR decomposition using Givens rotations
View qrdecomposition.ipynb
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 Mar 21, 2022
Basics-Least squares using QR decomposition
View leastsquares.ipynb
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 Nov 9, 2021
A simple daemon skeleton for Python 3.x
View LICENSE.md

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 Sep 12, 2021
Example program for synchronous usage of AD7705 with an ATMega2560
View LICENSE.md

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.
@tspspi
tspspi / LICENSE.md
Created Jul 28, 2021
Python access to Gamma vacuum QPC ion pump pressure gauge using Ethernet interface
View LICENSE.md

Copyright (c)2021 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.