Skip to content

fixed transmission loss plotting#120

Open
Vanillaholic wants to merge 1 commit into
org-arl:masterfrom
Vanillaholic:fix-transmission-loss-plotting
Open

fixed transmission loss plotting#120
Vanillaholic wants to merge 1 commit into
org-arl:masterfrom
Vanillaholic:fix-transmission-loss-plotting

Conversation

@Vanillaholic

Copy link
Copy Markdown

Sir, the attribute of tloss maybe not correspond after computing the tloss, which leads to wrong x-axis when plotting , variable environment is needed.This is the submitted PR.

@mchitre mchitre self-requested a review July 3, 2025 04:17
Comment thread arlpy/uwapm.py
Comment thread arlpy/uwapm.py
xlabel = 'Range (m)'
if xr[1]-xr[0] > 10000:
xr = (min(tloss.columns)/1000, max(tloss.columns)/1000)
xr = (env['rx_range'].min()/1000, env['rx_range'].max()/1000)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the problem that tloss.columns is not correctly populated? If so, perhaps that's the place to fix this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,'tloss.columns' is incorrect , but it was calculated by Acoustic Toolbox in fortran. Could only fix it in original package

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair. I suggest that we still make env optional (recommended), but pick up rx_range from it if it is specified. Works?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for long time till now thatInoticed your reply but there are lots of works for me, I would try refix it in spare time.🥲🥲🥲

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I understand. All of us have day jobs to take care of in addition to contributing to open source projects.

@mchitre

mchitre commented Jul 12, 2025

Copy link
Copy Markdown
Member

We also need to replicate the same change in pyplot_transmission_loss().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants