Skip to content

Commit

Permalink
clarify meaning of argument to np.empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
bhiogade authored Dec 29, 2023
1 parent f938b5f commit 8ea004c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyMPDATA/scalar_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def make_null(n_dims, traversals):
see `Field._make_null` other properties of the returned field"""
return Field._make_null(
ScalarField(
np.empty([INVALID_NULL_VALUE] * n_dims),
np.empty(shape=[0] * n_dims),
halo=0,
boundary_conditions=tuple([Constant(np.nan)] * n_dims),
),
Expand Down

0 comments on commit 8ea004c

Please sign in to comment.