Skip to content
Snippets Groups Projects

Resolve "Restructure prior module"

Merged Moritz Huebner requested to merge 444-restructure-prior-module into master
All threads resolved!
Files
2
+ 3
2
from importlib import import_module
import json
import os
import re
from importlib import import_module
import numpy as np
import scipy.stats
@@ -412,7 +413,7 @@ class Prior(object):
module = '.'.join(other_cls.split('.')[:-1])
other_cls = other_cls.split('.')[-1]
else:
module = __name__
module = __name__.replace('.' + os.path.basename(__file__).replace('.py', ''), '')
other_cls = getattr(import_module(module), other_cls)
val = other_cls.from_repr(vals)
else:
Loading