10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 03:07:44 +02:00

Fix CopyExcitationsTypeFrom assertion

This commit is contained in:
Mickaël Véril 2020-09-22 13:53:53 +02:00
parent 7762ec50ff
commit 2e2404747d

View File

@ -235,7 +235,9 @@ class dataFileBase {
})
if (ex2 !== undefined) {
if (DebugMode.Enabled) {
console.assert(ex.type == 0 || (ex2.type ^ (excitationTypes.Rydberg | excitationTypes.Valence) == ex.type ^ (excitationTypes.Rydberg | excitationTypes.Valence)), "Excitation type error", [ex, ex2, data.sourceFile])
const restflag=ex.type.Value & ex2.type.Value
const result=restflag==ex.type.Value
console.assert(result, "Excitation type error", [ex, ex2, this.sourceFile])
}
ex.type = ex2.type
}