Skip to content

Commit

Permalink
Improve the logic at is_array function from array module
Browse files Browse the repository at this point in the history
  • Loading branch information
neyberson committed Jun 6, 2024
1 parent 4cb9f55 commit 0145498
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pozo/utils/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ def is_array(value):
if isinstance(
value, (pozo.Track, pozo.Trace, pozo.Axis, pozo.Graph, Drawable, pozo.Note)
):
raise ValueError(_("You mustn't use pozo objects for this function"))

return False
if isinstance(value, str):
return False
if isinstance(value, pint.Quantity):
Expand Down

0 comments on commit 0145498

Please sign in to comment.