Skip to content

Commit

Permalink
Had some flawed logic in evaluating redacted lines for pseudo-MPECs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Dec 30, 2023
1 parent 4b2c1d6 commit e57f75f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ephem0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5269,9 +5269,9 @@ int make_pseudo_mpec( const char *mpec_filename, const char *obj_name)

/* Count number of redacted and (current) NEOCP lines : */
while( fgets_trimmed( buff, sizeof( buff), observations_ifile))
if( is_neocp_line( buff))
if( memcmp( buff, "COM ", 4)) /* skip comment/'sigma' lines */
{
if( memcmp( buff + 56, "Removed", 7))
if( is_neocp_line( buff) && memcmp( buff + 56, "Removed", 7))
n_neocp_lines++;
if( line_must_be_redacted( buff, orbit_is_heliocentric))
n_redacted_lines++;
Expand Down

0 comments on commit e57f75f

Please sign in to comment.