Skip to content

Instantly share code, notes, and snippets.

View Harmonic oscillator class.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asafpm
asafpm / Ejemplo validación.ipynb
Created May 2, 2021
Validación de firmas digitales
View Ejemplo validación.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asafpm
asafpm / ionpump.py
Created Mar 12, 2021
Gamma Vacuum Digitel SPCe controller
View ionpump.py
# Gamma Vacuum Digitel SPCe controller for ion pump
import serial
class IonPump:
def __init__(self, address=1, port='/dev/ttyUSB0', baudrate=9600):
self.serial = serial.Serial(port=port, baudrate=baudrate)
self.address = address
@asafpm
asafpm / covidmx_web.py
Last active Nov 13, 2020
Analysis script for the mexico COVID data
View covidmx_web.py
import pandas as pd
import matplotlib.pyplot as pl
import matplotlib.dates as mdates
from io import BytesIO # To avoid writing to disk
from zipfile import ZipFile
from glob import glob
import datetime
import json
import requests
import re
@asafpm
asafpm / Hidrógeno.ipynb
Created Apr 16, 2020
Cálculo de función radial de hidrógeno.
View Hidrógeno.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View noncummutatitivy_rotations.py
# Author: Asaf Paris-Mandoki <asaf@fisica.unam.mx>
# Description: manim animation to shou the noncummutativity of finite rotations.
from manimlib.imports import *
import numpy as np
class RotationCommutation(ThreeDScene):
CONFIG = {
}
View atomo_2_niveles.py
from scipy.integrate import ode
import numpy as np
import pylab as pl
# Parámetros físicos
omega = np.pi
# Parámetros de simulación
t = np.linspace(0,4,101)
View Time-dependent hamiltominan given in list array format.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View QuTIP debug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.