Skip to content

Commit

Permalink
Initialize values to float in geochem.transform.aggregate_element
Browse files Browse the repository at this point in the history
  • Loading branch information
morganjwilliams committed May 17, 2024
1 parent 89e385c commit e7bc351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrolite/geochem/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def aggregate_element(

for t in targetnames:
if t not in _df:
_df[t] = 0 # avoid missing column errors
_df[t] = 0. # avoid missing column errors

coeff = np.array(coeff)
if coeff.ndim == 2:
Expand Down

0 comments on commit e7bc351

Please sign in to comment.