Likely bug in buildstardb.pl
Posted: 11.12.2008, 07:03
I'm looking at the buildstardb.pl file in the src/tools/stardb folder. I just now performed an SVN UPDATE to ensure that I have the current version. There appears to be a bug on line 677 of the file where you are parsing the luminosity of the star. The parser previously read in the "I" character and then on line 676 recognized the "V" chacater. The luminosity on line 677 should be set to "IV" but instead it is set to "V". Here is the code snippet from the file.
- Jeff
Code: Select all
} elsif($state eq 'LumClassIState') {
if($c eq 'I') {
$state = 'LumClassIIState';
} elsif($c eq 'V') {
$lumClass = $SC_LumClass{'V'}; <---- BUG
$state = 'EndState';
} elsif($c eq 'a') {
$state = 'LumClassIaState';
} elsif($c eq 'b') {
$lumClass = $SC_LumClass{'Ib'};
$state = 'EndState';
} elsif($c eq '-') {
$state = 'LumClassIdashState';
} else {
$lumClass = $SC_LumClass{'Ib'};
$state = 'EndState';
}
$i++;
}
- Jeff