Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend (E)CL testing #368

Merged
merged 3 commits into from Jan 28, 2024
Merged

Extend (E)CL testing #368

merged 3 commits into from Jan 28, 2024

Conversation

olebole
Copy link
Member

@olebole olebole commented Jan 17, 2024

This is triggered by #367 (noirlab-iraf/gemini#10) in that it is worth to have a test of more CL and ECL functionality as well, and to test both packages. This implies separating the CL tests, and also separating the tests for ECL extended functionality into separate files cl.md and ecl.md.

The added tests are taken from pyraf/tests/test_cli.py.

This way, we found a minor glitch with the nint CL intrinsic: nint(2.5) should return 3 (half should round upwards), while the C function nearbyint() returned 2 (half rounds towards even). This is now fixed by using the C function roundl() instead.

@olebole olebole changed the title Extend (E)CL testing by intrinsic functions Extend (E)CL testing Jan 17, 2024
Originally, CL used FORTRANs NINT function which always rounds up for
.5, while nearbyint rounds towards the even number in this case.
@olebole olebole merged commit a195e90 into iraf-community:main Jan 28, 2024
3 checks passed
@olebole olebole deleted the test-cl branch January 28, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant