This commit is contained in:
2024-03-11 16:36:02 +01:00
parent 9e3640210d
commit 25da47ce0c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ enum class DeletionType {
class DeletionLogger {
public:
DeletionLogger(std::vector<DeletionType> used_types);
// why a coordinate as a parameter -> not used in implementation
virtual void logDeletion(const Coordinate& coordinate, DeletionType type);
std::map<DeletionType, long int> numDeletions() const;
+1 -1
View File
@@ -28,7 +28,7 @@ species::ImplementedSpecies SpeciesAlias::alias(const std::string& name) {
if (isAlias(name)) {
return specie_aliases.at(name);
} else {
ERROR("This specie has no alias." + name);
ERROR("This specie has no alias: " + name);
return specie_aliases.at(name);
}
}
+2
View File
@@ -32,6 +32,8 @@ int EnergyBinning::bin(double energy_eV) const {
return (it - energy_bin_borders_.begin()) - 1;
}
// max index for energy_bin_borders_ (i.e. number of bins that
// have both a lower and upper bound)
int EnergyBinning::numBins() const {
return energy_bin_borders_.size() - 1;
}