Closed akabla closed 3 years ago
Here is a bit of code that now works fine without using unicode symbols.
using RHEOS
using Plots
data = importcsv("C1_S_0A5_90_rheos.csv", time = 1, strain = 2, stress = 3)
plot(gettime(data), getstrain(data), getstress(data))
model=modelfit(data, FractD_Maxwell, stress_imposed, p0=(beta=0.05, c_beta=0.05, eta=10.0))
print(getparams(model, unicode=false))
# (eta = 65.17997591394088, c_beta = 0.08515319205963537, beta = 0.08989064046489526)
data_stress = extract(data, stress_only)
data_fit = modelpredict(data_stress, model)
plot(gettime(data_fit),[getstrain(data_fit), getstrain(data)])
This is related to #116
I think we should provide options to access all RHEOS functionalities without having to use Unicode symbols.
This would involve:
One option for 1 is to have a const named tuple with a symbol conversion table, and then convert symbols in
check_and_reorder_parameters
For 2, this could maybe be achieved like this: