Skip to content

Conversation

Vanillaholic
Copy link

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
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
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
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
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
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
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
Copy link
Member

mchitre commented Jul 12, 2025

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