Skip to content

Commit

Permalink
Remove usage of undocumented py3.12 only feature
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Nov 20, 2024
1 parent 7407ac1 commit 3f056f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gstools/field/pgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def calc_pgs(self):
for d in range(self._dim):
P_dig.append(np.digitize(mapping[:, d], pos_l[d]))

return self._L[*P_dig]
# once Py3.11 has reached its EOL, we can drop the 1-tuple :-)
return self._L[(*P_dig,)]

@property
def P(self):
Expand Down

0 comments on commit 3f056f6

Please sign in to comment.