This PR removes a spurious sys.exit() in afternoonplan.surveyPlan.assignHA and fixes a degrees vs. hours units bug in test_surveyplan.py.
More details:
There was a spurious sys.exit() at the end of afternoonplan.surveyPlan.assignHA(). Oddly, standard "python setup.py test" tests did not catch this because apparently that causes the tests to exit rather than getting caught as an error. However, surveysim tests using desisurvey did error, correctly noticing this as a SystemExit. I don't know the structural difference.
Either way, removing the sys.exit() allowed all the tests to run, highlighting a different degrees vs. hours bug in test_surveyplan; this time the bug was in the test itself rather than the code.
After merging this we'll be back in a state where surveysim+desisurvey pass tests together on master. Going via a PR to highlight the oddity of the impact of sys.exit() on the tests. If someone wants to look into this after it gets merged, git hash f419509 was the state of master with the problem.
This PR removes a spurious
sys.exit()
inafternoonplan.surveyPlan.assignHA
and fixes a degrees vs. hours units bug intest_surveyplan.py
.More details:
There was a spurious
sys.exit()
at the end ofafternoonplan.surveyPlan.assignHA()
. Oddly, standard "python setup.py test" tests did not catch this because apparently that causes the tests to exit rather than getting caught as an error. However, surveysim tests using desisurvey did error, correctly noticing this as a SystemExit. I don't know the structural difference.Either way, removing the
sys.exit()
allowed all the tests to run, highlighting a different degrees vs. hours bug in test_surveyplan; this time the bug was in the test itself rather than the code.After merging this we'll be back in a state where surveysim+desisurvey pass tests together on master. Going via a PR to highlight the oddity of the impact of
sys.exit()
on the tests. If someone wants to look into this after it gets merged, git hash f419509 was the state of master with the problem.