Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in TrainedModel when no data_info_table is defined #124

Open
chbehrens opened this issue Apr 21, 2021 · 0 comments
Open

KeyError in TrainedModel when no data_info_table is defined #124

chbehrens opened this issue Apr 21, 2021 · 0 comments

Comments

@chbehrens
Copy link
Contributor

chbehrens commented Apr 21, 2021

For a trained model table where nnfabrik references to nnfabrik.main and no data_info_table is explicitly defined

@property
def data_info_table(self):
return find_object(self.nnfabrik, "DataInfo", "data_info_table")

throws a key error as it tries to find the non-existent DataInfo in nnfabrik.main. Is this wanted behavior or should there be something like setting data_info_table = None maybe combined with a warning?

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

No branches or pull requests

1 participant