ExaScience / smurff

Bayesian Factorization with Side Information in C++ with Python wrapper
MIT License
70 stars 14 forks source link

Error when loading PredictSession from root.ini file #116

Closed thanhlv closed 4 years ago

thanhlv commented 6 years ago

error with SMURFF v0.12.3

predictor = smurff.PredictSession.fromRootFile('root.ini') Traceback (most recent call last): File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/configparser.py", line 789, in get value = d[option] File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/collections/init.py", line 883, in getitem return self.missing(key) # support subclasses that define missing File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/collections/init.py", line 875, in missing raise KeyError(key) KeyError: 'options'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/site-packages/smurff/predict.py", line 138, in fromRootFile options = OptionsFile(cp["options"]) File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/site-packages/smurff/predict.py", line 51, in getitem return self.cp.get("top-level", key) File "/home/tlevan3/anaconda3/envs/smurff-imec/lib/python3.6/configparser.py", line 792, in get raise NoOptionError(option, section) configparser.NoOptionError: No option 'options' in section: 'top-level'