MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / load

Method load

src/openms/source/FORMAT/TransformationXMLFile.cpp:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 void TransformationXMLFile::load(const String& filename, TransformationDescription& transformation, bool fit_model)
26 {
27 //Filename for error messages in XMLHandler
28 file_ = filename;
29
30 params_.clear();
31 data_.clear();
32 model_type_.clear();
33
34 parse_(filename, this);
35
36 transformation.setDataPoints(data_);
37
38 if (fit_model)
39 {
40 transformation.fitModel(model_type_, params_);
41 }
42 }
43
44 void TransformationXMLFile::store(const String& filename, const TransformationDescription& transformation)
45 {

Callers 2

mainFunction · 0.95

Calls 3

setDataPointsMethod · 0.80
fitModelMethod · 0.80
clearMethod · 0.45

Tested by 1