-
Notifications
You must be signed in to change notification settings - Fork 180
Fix conftest import #9715
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
Merged
tapastro
merged 5 commits into
spacetelescope:main
from
melanieclarke:fix_conftest_import
Aug 1, 2025
Merged
Fix conftest import #9715
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e242def
Reorganize extract_1d test data
melanieclarke 45919d6
Reorganize ami test data to avoid importing conftest
melanieclarke fbc0ab8
Add __all__ for helpers
melanieclarke 6d2acac
Copy docstrings for fixtures from helper functions
melanieclarke 35d4022
Merge branch 'main' into fix_conftest_import
tapastro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| """Useful constants and functions for AMI tests.""" | ||
|
|
||
| import numpy as np | ||
|
|
||
| PXSC_DEG = 65.6 / (60.0 * 60.0 * 1000) | ||
| PXSC_RAD = PXSC_DEG * np.pi / (180) | ||
| PXSC_MAS = PXSC_DEG * 3600 * 1000 | ||
|
|
||
| __all__ = [] # type: ignore[var-annotated] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| """Test data and functions useful for testing.""" | ||
|
|
||
| PWCPOS = 245.85932900002442 | ||
| DATA_SHAPE = (25, 200) | ||
| WAVE_BNDS_O1 = [2.8, 0.8] | ||
| WAVE_BNDS_O2 = [1.4, 0.5] | ||
| WAVE_BNDS_GRID = [0.7, 2.7] | ||
| ORDER1_SCALING = 20.0 | ||
| ORDER2_SCALING = 2.0 | ||
| TRACE_END_IDX = [DATA_SHAPE[1], 180] | ||
| SPECTRAL_SLOPE = 2 | ||
|
|
||
| __all__ = ["f_lam"] | ||
|
|
||
|
|
||
| def f_lam(wl, m=SPECTRAL_SLOPE, b=0): | ||
| """ | ||
| Return a linear model of flux as function of wavelength. | ||
|
|
||
| Parameters | ||
| ---------- | ||
| wl : array[float] | ||
| Wavelength | ||
| m : float | ||
| Slope of linear model | ||
| b : float | ||
| Intercept of linear model | ||
|
|
||
| Returns | ||
| ------- | ||
| array[float] | ||
| Flux | ||
| """ | ||
| return m * wl + b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.