Skip to content

Instantly share code, notes, and snippets.

from scipy.optimize import fsolve, minimize, Bounds
import numpy, matplotlib.pyplot as plt
from numpy import exp, sin, log, sqrt, floor
pi = numpy.pi
x0 = [42e-3,2e-3,56e-3,42+273.15]
y0 = [12e-3,2e-3, 42+273.15]
def Dimensionnement_echangeur_E(X, printlog=False):
#X[0]=De
import datetime as l
import sys
import time as tm
libs = []
version = 1.14
name = "Alexandra"
params = []
d=l.date.today()
@Hamster-Furtif
Hamster-Furtif / parser.py
Last active May 30, 2017 18:42
A parser for any .csv file
import matplotlib.pyplot as plt
def openFile(name, maxTime=0):
file = open(name+".txt")
tab = file.read()
tab=tab.split("\n")
names=tab[0].split("\t")
if(maxTime==0):
maxTime=len(tab)
new_tab = []