This repo is terrific! Neat work. I am trying to generate master curves using this tool for my research. A few initial thoughts:
import matplotlib
from matplotlib import pyplot as plt
from mastercurves.transforms import Multiply
from mastercurves import MasterCurve
def func(x,t):
c = (1/np.sqrt(4*np.pi*t))*np.exp(-(x**2)/4*t)
return c
x1 = np.linspace(0.1,2)
ct1 = np.array([func(i, 1) for i in x1])
ct2 = np.array([func(i, 2) for i in x1])
ct3 = np.array([func(i, 3) for i in x1])
ct4 = np.array([func(i, 4) for i in x1])
dataX = [x1, x1, x1, x1]
dataY = [ct1, ct2, ct3, ct4]
dataX_log = [np.log(i) for i in dataX]
dataY_log = [np.log(i) for i in dataY]
t_states = [1,2,3,4]
mc = MasterCurve()
mc.add_data(dataX_log, dataY_log, t_states)
mc.set_gp_kernel(mc.kernel)
# mc.add_vtransform(Multiply())
mc.add_htransform(Multiply())
mc.superpose()
mc.plot()
plt.show()