Closed stefaanhessmann closed 1 year ago
Currently the SPKCalculator converts energy to float with .numpy()[0]. If by accident one passes an array for energy (this should not be done) the calculator uses the first element and runs fine. I changed this to raising an exception for that case.
SPKCalculator
.numpy()[0]
Currently the
SPKCalculator
converts energy to float with.numpy()[0]
. If by accident one passes an array for energy (this should not be done) the calculator uses the first element and runs fine. I changed this to raising an exception for that case.