@enervance/insight-cim-model 0.0.445 → 0.0.446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,7 +328,7 @@ class ConverterIntegral7 {
328
328
  }
329
329
  convertFrame(frame, geoRegion, objectMappingConfig, energyTypesConfig, defaultValuesConfig, energySourceTypeMappingConfig) {
330
330
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
331
- var _a;
331
+ var _a, _b;
332
332
  const integral7Modell = frame.getI7Model();
333
333
  const cimModel = frame.cimModel;
334
334
  this.svProfileZweigData = new Map;
@@ -457,7 +457,8 @@ class ConverterIntegral7 {
457
457
  * 2) netz_schaltelement1pelem -> Junction/Terminal
458
458
  * 3) netz_kdrossel */
459
459
  /** Sternpunktschienen -> ConnectivityNodes */
460
- if (standortIDs.length > 0) {
460
+ if (standortIDs.length > 0 && !((_a = objectMappingConfig.ExcludeElements) === null || _a === void 0 ? void 0 : _a.includes('KDrossel'))) {
461
+ // für einige Anwendungsfälle werden keine PetersenCoils benötigt
461
462
  startTime = perf_hooks.performance.now();
462
463
  const stpSchieneID = yield this.convertSternpunktSchienen(cimModel, integral7Modell, standortIDs);
463
464
  /** KDrossel -> GroundingImpedance/PetersenCoil */
@@ -663,7 +664,7 @@ class ConverterIntegral7 {
663
664
  const netzErsatzlaengszweigIds = [...integral7Modell.integalErsatzLaengszweigIds.values()];
664
665
  const netzStreckenlastIds = [...integral7Modell.integralLeitungen.values()].map(leitung => leitung.streckenlastId).filter(id => id !== undefined && id !== null);
665
666
  const allLeitungIds = [...new Set([...netzLeitungIds, ...netzHgueLeitungIds, ...netzErsatzlaengszweigIds, ...netzStreckenlastIds]).values()];
666
- const overall_substation_amount = ((_a = standortIDs === null || standortIDs === void 0 ? void 0 : standortIDs.length) !== null && _a !== void 0 ? _a : 0);
667
+ const overall_substation_amount = ((_b = standortIDs === null || standortIDs === void 0 ? void 0 : standortIDs.length) !== null && _b !== void 0 ? _b : 0);
667
668
  this.configurableDLConvertOptions;
668
669
  const convertOptions = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(this.configurableDLConvertOptions))), { overall_substation_amount: overall_substation_amount, visible_only: true, boundary_standortIds, only: {
669
670
  netz_standortIds,