-
Notifications
You must be signed in to change notification settings - Fork 14
Improve Axis Detector Handling with Flexible tag Support #104
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
ambarb
merged 12 commits into
NSLS-II-CSX:master
from
nisarnk:nisar_detectors_tag_inIssue100
Aug 25, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
08beb39
Replace Black and Flake8 with Ruff
nisarnk db3735f
replace .github/workflows/flake8.yml with .github/workflows/ruff.yml
nisarnk 95f6ed7
Bug fix in .github/workflows/ruff.yml
nisarnk 7e9ab6b
Update pyproject.toml to exclude 'examples' and other diectories like…
nisarnk f228d23
Detector 'tag' handling inside _get_axis1_images is improved and fixe…
nisarnk 3233b53
fixed varible names
nisarnk 753d44b
fixed issue with method browse_3Darray in csxtools/helpers/fastccd.py
nisarnk 3799914
modified: csxtools/utils.py to address the issue with detector tag
nisarnk f505d46
Merge branch 'nisar_replace-black-flake8-with-ruff' into nisar_detect…
nisarnk 2ce04c2
Small bugs related to detector tag is fixed
nisarnk caec327
modified utils.py/get_axis_flatfield() to add 'tag', an essential par…
nisarnk cd296f6
some doc strings in utils.py are improved
nisarnk 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
| name: Check Code Style - RUFF | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| - name: Install Dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools numpy | ||
| pip install ruff | ||
| - name: Run ruff | ||
| run: ruff check . |
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 |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| detectors = {} | ||
| detectors["fccd"] = "fccd_image" | ||
| detectors["axis1"] = "axis1_image" | ||
| detectors["axis"] = "axis_image" | ||
| detectors["axis_standard"] = "axis_standard_image" | ||
| detectors["axis_cont"] = "axis_cont_image" | ||
|
|
||
| diff_angles = ["delta", "theta", "gamma", None, None, None] |
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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| numpy | ||
| ruff>=0.4.0 |
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.