Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Debug flag for map_over_subtree #190

Closed
jbusecke opened this issue Jan 9, 2023 · 2 comments · Fixed by #264
Closed

Debug flag for map_over_subtree #190

jbusecke opened this issue Jan 9, 2023 · 2 comments · Fixed by #264
Labels
enhancement New feature or request

Comments

@jbusecke
Copy link
Contributor

jbusecke commented Jan 9, 2023

This is a common scenario for me:
I construct a tree from many different datasets, manipulate, and plot it.
Now let's say, something unexpected happened, that will throw an error during plotting of only one/a subset of datasets (e.g. the dimensions of one of the datasets was larger than expected hence the plot fails).

If there was a way to get the exact path of the failure

dt.map_over_subtree(plot_func, debug=True) --> "An error occured while trying to map function over `sub/tree/path/to/dataset`"

That would speed up finding issues with inhomogeneous data.

@TomNicholas
Copy link
Member

👍 We should just improve the error handling so that the stack trace gives context as to which dataset the error was raised from.

@TomNicholas TomNicholas added the enhancement New feature or request label Jan 9, 2023
@jbusecke
Copy link
Contributor Author

jbusecke commented Jan 9, 2023

Even better! Less complex.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants