|
@@ -53,12 +53,19 @@ namespace Lemma {
|
53
|
53
|
tol = node["tol"].as<Real>();
|
54
|
54
|
minLevel = node["minLevel"].as<int>();
|
55
|
55
|
maxLevel = node["maxLevel"].as<int>();
|
56
|
|
- Taup = node["Taup"].as<Real>();
|
57
|
|
- PulseI = node["PulseI"].as<VectorXr>();
|
58
|
56
|
Interfaces = node["Interfaces"].as<VectorXr>();
|
59
|
57
|
Size = node["IntegrationSize"].as<Vector3r>();
|
60
|
58
|
Origin = node["IntegrationOrigin"].as<Vector3r>();
|
61
|
59
|
|
|
60
|
+ if (node["AlignWithAkvoData"]) {
|
|
61
|
+ // Match pulse info with dataset
|
|
62
|
+ AlignWithAkvoDataset( YAML::LoadFile( node["AlignWithAkvoData"].as<std::string>()));
|
|
63
|
+ } else {
|
|
64
|
+ // Read Pulse info direct from Kernel file
|
|
65
|
+ PulseI = node["PulseI"].as<VectorXr>();
|
|
66
|
+ Taup = node["Taup"].as<Real>();
|
|
67
|
+ }
|
|
68
|
+
|
62
|
69
|
if (node["SigmaModel"]) {
|
63
|
70
|
if (node["SigmaModel"].Tag() == "LayeredEarthEM") {
|
64
|
71
|
SigmaModel = LayeredEarthEM::DeSerialize(node["SigmaModel"]);
|
|
@@ -159,8 +166,8 @@ namespace Lemma {
|
159
|
166
|
std::cout << node["processed"] << std::endl;
|
160
|
167
|
}
|
161
|
168
|
if (node["pulseType"].as<std::string>() == "FID") {
|
162
|
|
- PulseI = node["Pulse 1"]["current"].as<VectorXr>();
|
163
|
|
- this->SetPulseDuration( node["pulseLength"].as<double>() );
|
|
169
|
+ PulseI = node["Pulses"]["Pulse 1"]["current"].as<VectorXr>();
|
|
170
|
+ this->SetPulseDuration( node["pulseLength"][0].as<double>() );
|
164
|
171
|
} else {
|
165
|
172
|
std::cerr << "Pulse Type " << node["PulseType"] << "is not supported\n";
|
166
|
173
|
}
|