Use Python to make text report from html #441
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Use Python to make text report from html
This is intended to support our arm64 build, as I have not quite gotten Perl HTML::TableExtract to build successfully on arm64 and perhaps we just don't need it.
Interface impacts
This changes newlines in the text file output of starcheck.
I think the only thing parsing the text file is the starcheck_parser code, which is functionally checked as part of this PR. Load review also uses diffs of the text file, but this PR does not introduce diffs between the vehicle and full loads.
Testing
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests
The full load to vehicle output diffs in the test outputs are consistent with the same diffs in the 'master' branch diffs:
https://icxc.cfa.harvard.edu/aspect/test_review_outputs/starcheck/starcheck-pr441/MAY1324B_masters_diff.html
https://icxc.cfa.harvard.edu/aspect/test_review_outputs/starcheck/starcheck-pr441/MAY1324B_test_diff.html
The text files as parsed by starcheck.parser show that the new output appears to work better with the parser in that the extra spacing by chance fixes a bug that the maneuvers of the maneuver-only observations were not getting into the dictionary of the parser in the output from master. There's no real impact there as the starcheck parser output is intended to work to create and update a database of star catalogs (and the maneuver-only observations don't have those).
I confirmed that the text block (from the output of master) is consistent with the maneuver information printed for 43447 and parsed.
And everything else is identical.