Skip to content

Commit

Permalink
SOF-6927: NTYP_WITH_LABELS method does not have argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Mar 6, 2024
1 parent 05e82ea commit a6c4595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/context/providers/espresso/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export class QEPWXContextProvider extends mix(ExecutableContextProvider).with(
const elm = material.Basis.elementsArray;
const labels = material.Basis.atomicLabelsArray;
const elmWithLabel = elm.map((label, idx) => label + labels[idx]);

// return unique items
return [...new Set(elmWithLabel)];
}

Expand Down Expand Up @@ -71,7 +73,7 @@ export class QEPWXContextProvider extends mix(ExecutableContextProvider).with(
ATOMIC_SPECIES_WITH_LABELS: this.ATOMIC_SPECIES_WITH_LABELS(material),
NAT: QEPWXContextProvider.NAT(material),
NTYP: QEPWXContextProvider.NTYP(material),
NTYP_WITH_LABELS: QEPWXContextProvider.NTYP_WITH_LABELS(material),
NTYP_WITH_LABELS: QEPWXContextProvider.NTYP_WITH_LABELS,
ATOMIC_POSITIONS: QEPWXContextProvider.atomicPositionsWithConstraints(material),
ATOMIC_POSITIONS_WITHOUT_CONSTRAINTS: QEPWXContextProvider.atomicPositions(material),
CELL_PARAMETERS: QEPWXContextProvider.CELL_PARAMETERS(material),
Expand Down

0 comments on commit a6c4595

Please sign in to comment.