You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
sot
<
8000
span class="mx-1 flex-self-stretch color-fg-muted">/
chandra_acaPublic
Notifications
You must be signed in to change notification settings
def broadcast_arrays(*args):
is_scalar = all(np.array(arg).ndim == 0 for arg in args)
args = np.atleast_1d(*args)
# np.atleast_1d returns a scalar for only one arg, so need
# to turn it into a list for the np.broadcast_arrays call.
if not isinstance(args, list):
args = [args]
outs = [is_scalar] + np.broadcast_arrays(*args)
return outs
This doesn't impact anything in star_probs, but this is a useful-enough function that I use it elsewhere.
The text was updated successfully, but these errors were encountered:
The code should be:
This doesn't impact anything in
star_probs
, but this is a useful-enough function that I use it elsewhere.The text was updated successfully, but these errors were encountered: