Skip to content

Instantly share code, notes, and snippets.

View joacorapela's full-sized avatar

Joaquin Rapela joacorapela

View GitHub Profile
import sys
import numpy as np
import plotly.graph_objects as go
def sample_HOs(t, sigma, freq_HO, HO0):
eta = np.random.normal(scale=sigma, size=len(t))
HOs = np.empty(shape=len(t))
HOs[0] = HO0
for i in range(0, len(t)-1):
HOs[i+1] = 2 * np.pi * freq_HO * t[i] + eta[i]
@joacorapela
joacorapela / config_dict.py
Created June 20, 2022 18:25 — forked from amitsaha/config_dict.py
Dumps a Config file into a Python dictionary
''' Dumps a config file of the type readable by ConfigParser
into a dictionary
Ref: http://docs.python.org/library/configparser.html
'''
import sys
import ConfigParser
class GetDict: