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

p.create_population() #138

Closed
Her00000 opened this issue Sep 20, 2024 · 1 comment
Closed

p.create_population() #138

Her00000 opened this issue Sep 20, 2024 · 1 comment
Assignees
Labels
gala An issue related to gala

Comments

@Her00000
Copy link

Based on your tutorial, I created hydropop, like this

p = cogsworth.hydro.pop.HydroPopulation(star_particles=particle,
                                        galactic_potential=low_res_pot,
                                        cluster_radius=3 * u.pc,
                                        cluster_mass=10000 * u.Msun,
                                        virial_parameter=1.0,
                                        max_ev_time=13.736 * u.Gyr,
                                        processes=5)

then
p.create_population()

  0%|          | 0/108 [00:00<?, ?it/s]**WARNINGWARNINGWARNINGWARNING: AstropyDeprecationWarning: The run function is deprecated and may be removed in a future version.**
        Use Integrator call method instead. [gala.potential.potential.core]WARNING
: AstropyDeprecationWarning: The run function is deprecated and may be removed in a future version.
        Use Integrator call method instead. [gala.potential.potential.core]: AstropyDeprecationWarning: The run function is deprecated and may be removed in a future version.
        Use Integrator call method instead. [gala.potential.potential.core]: AstropyDeprecationWarning: The run function is deprecated and may be removed in a future version.
        Use Integrator call method instead. [gala.potential.potential.core]: AstropyDeprecationWarning: The run function is deprecated and may be removed in a future version.
        Use Integrator call method instead. [gala.potential.potential.core]



100%|██████████| 108/108 [00:25<00:00,  4.16it/s]
[51.6s] Get orbits (run gala)
Overall: 51.7s

Do you need to change the code?

@Her00000 Her00000 added the bug Something isn't working label Sep 20, 2024
@TomWagg
Copy link
Owner

TomWagg commented Sep 20, 2024

Ah yes the deprecation warnings are from gala not cogsworth (see this issue: adrn/gala#389), it'll be fixed in gala v1.9.2.

Good point though, I can add a filter to cogsworth to hide these warnings in the meantime.

@TomWagg TomWagg added gala An issue related to gala and removed bug Something isn't working labels Sep 20, 2024
@TomWagg TomWagg self-assigned this Sep 20, 2024
@TomWagg TomWagg closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gala An issue related to gala
Projects
None yet
Development

No branches or pull requests

2 participants