Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/r/praxes-HEAD/praxes/fluorescence/mptaskmanager.py   praxes(Download)
import numpy as np
from PyMca import ClassMcaTheory
from PyMca.ConcentrationsTool import ConcentrationsTool
import numpy as np
np.seterr(all='ignore')
    advanced_fit.enableOptimizedLinearFit()
    if 'concentrations' in config:
        mass_fraction_tool = ConcentrationsTool(config['concentrations'])
        mass_fraction_tool.config['time'] = 1
    else:

src/p/r/praxes-HEAD/praxes/combi/xrf_analysis.py   praxes(Download)
from PyMca import ConfigDict
from PyMca import ClassMcaTheory
from PyMca.ConcentrationsTool import ConcentrationsTool
import PyMca.Elements as PyMEl
 
    def FitProcessSpectrum(self, pymca_config, spectrum):
        advancedFit = ClassMcaTheory.McaTheory(config=pymca_config)
        advancedFit.enableOptimizedLinearFit()
        mfTool = ConcentrationsTool(pymca_config)
        tconf = mfTool.configure()