Skip to content

Commit a2aa631

Browse files
committed
Fix parsing of the 2012 NUBASE file
I'm sure I've parsed this file before, guess not!
1 parent 7abb3b7 commit a2aa631

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/massTable.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,13 @@ bool MassTable::readNUBASE(const std::filesystem::path& nubaseTable)
147147

148148
while (std::getline(file, line))
149149
{
150-
if (line.find("non-exist") != std::string::npos)
150+
// 2012 table has some (26) lines like this:
151+
// 168 0630W 168Eu >300ns 12Ku26i 2012
152+
// B- ?;B-n ?
153+
// They are theoretical but don't contain a '#' and give no ME value.
154+
// All of the isotopes seem to come from the same paper, so just ignore it's data for the moment.
155+
// Sorry whoever you are
156+
if (line.find("non-exist") != std::string::npos || line.find("12Ku26i") != std::string::npos)
151157
{
152158
continue;
153159
}

0 commit comments

Comments
 (0)