mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2025-01-12 14:08:28 +01:00
Fix CopyExcitationsTypeFrom assertion
This commit is contained in:
parent
7762ec50ff
commit
2e2404747d
@ -235,7 +235,9 @@ class dataFileBase {
|
|||||||
})
|
})
|
||||||
if (ex2 !== undefined) {
|
if (ex2 !== undefined) {
|
||||||
if (DebugMode.Enabled) {
|
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
|
ex.type = ex2.type
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user