Skip to content

Conversation

@ddkohler
Copy link
Contributor

@ddkohler ddkohler commented Jan 16, 2026

Normalize all Tune/DiscreteTune call outputs to np.ndarrays.

  • DiscreteTune.__call__ now outputs numpy.ndarray type always
  • fixes bug where DiscreteTune did not properly respect order of identifiers when array was called.
  • resolves normalize DiscreteTune output #188

@ddkohler ddkohler marked this pull request as ready for review January 16, 2026 15:53
dtype=f"U{max([len(s) for s in self.ranges.keys()])}",
)
# work in reverse so that the first valid entry persists
for key, (imin, imax) in reversed(self.ranges.items()):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reversed iteration insures earlier items will have precedence.

@ddkohler ddkohler merged commit 8322251 into master Jan 16, 2026
4 checks passed
@ddkohler ddkohler deleted the tune-output-types branch January 16, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

normalize DiscreteTune output

1 participant