Skip to content

Commit

Permalink
Updated initializer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SindhuraParuchuri authored Jan 24, 2024
1 parent e358b41 commit 98ec8b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions epymorph/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ def bottom_locations(ctx: InitContext, attribute: str, num_locations: int, seed_
selection = np.argpartition(arr, num_locations)[:num_locations]
return indexed_locations(ctx, selection, seed_size)

<<<<<<< HEAD
=======


def bird_movement_initializer(ctx: SimContext)->NDArray[SimDType]:
result = ctx.geo['bird_population'].reshape((ctx.nodes, ctx.compartments)) # type: ignore
return result.astype(SimDType)
>>>>>>> 1605ad4 (Simulation Notebook)




Expand Down

0 comments on commit 98ec8b3

Please sign in to comment.