|
@@ -134,7 +134,7 @@ namespace Lemma {
|
134
|
134
|
* used in Python wrapping
|
135
|
135
|
*/
|
136
|
136
|
static std::shared_ptr<KernelV0> DeSerialize( const std::string& node ) {
|
137
|
|
- return KernelV0::DeSerialize(YAML::Load(node));
|
|
137
|
+ return KernelV0::DeSerialize(YAML::LoadFile(node));
|
138
|
138
|
}
|
139
|
139
|
|
140
|
140
|
// ==================== OPERATORS =======================
|
|
@@ -161,6 +161,13 @@ namespace Lemma {
|
161
|
161
|
void AlignWithAkvoDataset( const YAML::Node& node ) ;
|
162
|
162
|
|
163
|
163
|
/**
|
|
164
|
+ * Aligns the kernel pulse settings with an Akvo Processed dataset.
|
|
165
|
+ */
|
|
166
|
+ void AlignWithAkvoDataset( const std::string& file ) {
|
|
167
|
+ AlignWithAkvoDataset( YAML::LoadFile(file) );
|
|
168
|
+ }
|
|
169
|
+
|
|
170
|
+ /**
|
164
|
171
|
* Assign transmiter coils
|
165
|
172
|
*/
|
166
|
173
|
inline void PushCoil( const std::string& label, std::shared_ptr<PolygonalWireAntenna> ant ) {
|