-
Notifications
You must be signed in to change notification settings - Fork 90
Use normalization to compute echo range scaling #1463
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
ctuguinay
merged 33 commits into
OSOceanAcoustics:main
from
ctuguinay:investigate_rotation_matrix_upgrade
Apr 3, 2025
Merged
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
2883f9d
use align vectors instead of from matrix for a channel-wise rotation
ctuguinay 5b37e39
use normalization logic, add warnings, and add tests
ctuguinay 3734591
simplify test
ctuguinay 96c2ea3
small word change
ctuguinay 50e29c5
Update echopype/consolidate/ek_depth_utils.py
ctuguinay e06d9cb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5faf016
replace previous APA7 citation with recent ICES APA7 citation (#1455)
ctuguinay 6186616
pin scipy to temporarily ensure that rotation matrix calculation does…
ctuguinay 095d54f
[pre-commit.ci] pre-commit autoupdate (#1461)
pre-commit-ci[bot] 62a78b0
Check if there exist any swap files before cleaning them up [all test…
ctuguinay 9f1a1f7
remove __setattr__ from EchoData (#1457)
leewujung 79cf828
compute dask array before np array equal (#1452)
ctuguinay a01785e
Dataset.dims to Dataset.sizes [all tests ci] (#1453)
ctuguinay 14d613c
Chunks as dictionaries in `_get_auto_chunk` [all tests ci] (#1454)
ctuguinay 2c430fd
set decode timedelta to False since it will default to this in later …
ctuguinay 51a573e
Fix deprecation warning for truth value of an empty array [all tests …
ctuguinay aff32d9
Fill in NaN for missing EK80 coefficients [all tests ci] (#1458)
leewujung 9f3ef6c
Backward compatibility of raw-converted dataset with `xr.DataTree` [a…
oftfrfbf 48ccd56
Add v0.9.1 and v0.10.0 release notes to docs (#1465)
leewujung e98e213
Update workflows to use python 3.12 and ubuntu 22.04 [all tests ci] (…
leewujung 690c542
Replace `pkg_resources.resource_string` with `importlib.resources.fil…
leewujung 0fea7dd
chore(deps): bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 (…
dependabot[bot] df17355
chore(deps): bump actions/cache from 4.2.0 to 4.2.1 (#1469)
dependabot[bot] 1c1d18f
not -> no (#1471)
jmeischner e0fa5a4
[pre-commit.ci] pre-commit autoupdate (#1472)
pre-commit-ci[bot] e7e31e0
chore(deps): bump actions/cache from 4.2.1 to 4.2.2 (#1473)
dependabot[bot] 4a9b4fc
chore(deps): bump actions/setup-python from 5.4.0 to 5.5.0 (#1481)
dependabot[bot] f9d30f5
[pre-commit.ci] pre-commit autoupdate (#1480)
pre-commit-ci[bot] a6acb53
chore(deps): bump actions/cache from 4.2.2 to 4.2.3 (#1479)
dependabot[bot] 6bd05d6
expand ping time preemptively and add corresponding chunking tests (#…
ctuguinay d1c5744
Enhance `compute_MVBS` feasability (#1470)
ctuguinay ff3cfaa
merge main
ctuguinay a993c55
indent line of code
ctuguinay 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This statement is reversed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so since

xr.where(norm < tolerance, np.nan, beam_direction_z / norm)will return NaN if norm is smallThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i know what I read wrong! I read "near-zero" as "non-zero" 😵
This is resolved then!