Skip to content
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

how to change inclination? #7

Open
Specom opened this issue Jun 15, 2024 · 1 comment
Open

how to change inclination? #7

Specom opened this issue Jun 15, 2024 · 1 comment

Comments

@Specom
Copy link

Specom commented Jun 15, 2024

I really like this project. I run the code in anaconda, however, I somehow can not change the inclination. Do I need to run the code in jupiter notebook instead? If I rember right, the inclination from the famouse image was 10 degree. Could you give an example for the command line for this inclination?

Thanks a lot!

@bgmeulem
Copy link
Owner

Hi, thanks for asking. Normally, the inclination is set upon initializing either the black hole class or the isoradial class. If you want an inclination of 10 degrees, you can do something like

bh = BlackHole(inclination=10, mass=1)
bh.plot_isoradials([10, 20, 30], [10, 20, 30])
# or to sample photons 
bh.sample_points(n_points=20000)

Let me know if that works for you

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

No branches or pull requests

2 participants