Skip to content

Clarify ImportError location for as_xtensor in dims error message#8060

Closed
Diegomed11 wants to merge 1 commit intopymc-devs:mainfrom
Diegomed11:fix-xtensor-error-msg
Closed

Clarify ImportError location for as_xtensor in dims error message#8060
Diegomed11 wants to merge 1 commit intopymc-devs:mainfrom
Diegomed11:fix-xtensor-error-msg

Conversation

@Diegomed11
Copy link
Copy Markdown

MAINT: Clarify import path for as_xtensor in dims error message

Description

Updated the ValueError message in pymc/dims/distributions/core.py to explicitly suggest using pytensor.xtensor.as_xtensor.

Previously, the error message only suggested as_xtensor, which could be confusing for users trying to locate the correct import. This change points directly to the PyTensor location, improving the debugging experience.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

point to location of as_xtensor

1 participant