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

fixes so that effective area tests pass #310

Merged
merged 33 commits into from
Dec 19, 2024
Merged

Conversation

jslavin
Copy link
Contributor

@jslavin jslavin commented Dec 19, 2024

These fixes include:

  1. recalculation of the IDL effective area files using linear interpolation
  2. change to effective_area.py such that the effective area wavelength grid is the same as that used by IDL
  3. change to test_effective_area.py to include an absolute tolerance, atol, in addition to relative tolerance rtol.
    The actual differences in the calculated effective areas should be small.

jslavin and others added 30 commits June 5, 2023 16:15
The path to the model for hybrid abundances and photospheric abundances were switched.
Made atol scaled to temperature response to provide a more stringent test.
Made atol scaled to temperature response to provide a more stringent test.
Made atol scaled to temperature response to provide a more stringent test.
Made atol scaled to temperature response to provide a more stringent test.
Use atol and rtol values that should lead to passing all tests.
Use atol, rtol values that should lead to passing all tests.
Use atol, rtol values that should lead to passing all tests.
Use atol, rtol values that should lead to passing all tests.
needed to scale atol to max value of temperature response
need to scale atol to the max value of temperature response
…ak and xrt_deconvolve to that directory. Also moved associated tests and data
…tio. Also added fits keywords HGLN_OBS and HGLT_OBS to returned map metadata.
@jslavin jslavin merged commit e468feb into HinodeXRT:main Dec 19, 2024
8 checks passed
@joyvelasquez
Copy link
Contributor

Hi @nabobalis and @wtbarnes ,
@jslavin was able to debug the methods in numpy.allclose that we were using for testing. All Effective Area are passing. Thanks, Jon!

Closes #292: Regenerate IDL effective area test data

@joyvelasquez joyvelasquez added bug Something isn't working Code Improvement For general improvements to the codebase without adding new features. labels Dec 19, 2024
@joyvelasquez joyvelasquez added this to the 0.5.0 milestone Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Code Improvement For general improvements to the codebase without adding new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants