org-arl / arlpy

ARL Python Tools
BSD 3-Clause "New" or "Revised" License
119 stars 37 forks source link

Possibility to change the number of output beams from the source in uwapm #22

Closed cristiantesconi1994 closed 5 years ago

cristiantesconi1994 commented 5 years ago

Hello, I'm using arlpy library. I desired to change the number of output beams from the source. For example, if i want to visualize only 2 or 3 rays when i run plot_ray routine, how can i do that? I notice that in the routine create_env2d there isn't any parameters who permits to modify the number of beams. I desired, to modify as in Matlab in the .env file, the number of beam. Waiting for an answer I send my best regards.

Cristian Tesconi

mchitre commented 5 years ago

Are you referring to the NBEAMS parameter in the env file?

It is currently set to 0, as per the recommendation in the Bellhop manual. But if you need to have the ability to modify it, I can make it available from the API.

cristiantesconi1994 commented 5 years ago

Yes, I refer to the NBEAMS parameter in the env file. If it possible, i'd like it available. I await news. Thanks in advance.

mchitre commented 5 years ago

Okay, I have added it to the current dev branch in commit ff416e5efee6f79d27576ffdf73671593af13c6b. It should be part of the upcoming release, but if you need it now, you can simply work from the current dev branch as it is quite stable.

cristiantesconi1994 commented 5 years ago

Ok thanks. I have another question: i'm using Atom and Jupyter notebook, how can i change the branch and switch from master to dev ?

mchitre commented 5 years ago

You can clone the repo: git clone git@github.com:org-arl/arlpy.git, switch to the dev branch: git checkout dev, and then set your PYTHONPATH to point to the directory where you've cloned the repo. Delete off the previous arlpy version from your machine/path to ensure that there's no clash between versions.

cristiantesconi1994 commented 5 years ago

Ok, thank you very much for the availability.