Skip to content

Commit

Permalink
Merge pull request #127 from MaxFBurg/master
Browse files Browse the repository at this point in the history
Fixes bug: resolve str function name
  • Loading branch information
KonstantinWilleke authored May 6, 2021
2 parents 0f3e2b7 + b4e7bd3 commit 749f13f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nnfabrik/templates/trained_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import warnings
import datajoint as dj
from datajoint.fetch import DataJointError
from ..builder import get_all_parts, get_model, get_trainer
from ..builder import get_all_parts, get_model, get_trainer, resolve_fn
from ..utility.dj_helpers import make_hash
from .utility import find_object

Expand Down Expand Up @@ -327,6 +327,7 @@ def make(self, key):
}
"""
dataset_fn, dataset_config = (self.dataset_table & key).fn_config
dataset_fn = resolve_fn(dataset_fn, "datasets")
data_info = dataset_fn(**dataset_config, return_data_info=True)

fabrikant_name = self.user_table.get_current_user()
Expand Down

0 comments on commit 749f13f

Please sign in to comment.