Skip to content

Commit

Permalink
Remove default number of particles
Browse files Browse the repository at this point in the history
  • Loading branch information
rieder committed Nov 26, 2024
1 parent bff94f8 commit b8bc482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/amuse/ic/molecular_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def new_molecular_cloud(
nf=32,
power=-3.0,
target_number_of_stars=10000,
target_number_of_stars=None,
ethep_ratio=0.01,
convert_nbody=None,
ekep_ratio=1.0,
Expand All @@ -28,9 +28,12 @@ def new_molecular_cloud(
if target_number_of_stars != targetN:
raise ValueError(
"targetN and target_number_of_stars have different values, "
"this is only allowed if targetN is None"
"this is only allowed if targetN is None and target_number_of_stars "
"is not None"
)
targetN = target_number_of_stars
if target_number_of_stars is None:
raise ValueError("target_number_of_stars must be set")
return molecular_cloud(
nf=nf,
power=power,
Expand Down

0 comments on commit b8bc482

Please sign in to comment.