CallFlow icon indicating copy to clipboard operation
CallFlow copied to clipboard

Jupyter Notebook: Can't parse config file

Open adintegra opened this issue 5 years ago • 1 comments

The example Jupyter Notebook can't be run as there seems to be an issue reading the example config file:

singleConfig = ConfigFileReader(singleConfigPath)

Causes the following error:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-16-81364d44a7da> in <module>
      1 # Read config file.
----> 2 singleConfig = ConfigFileReader(singleConfigPath)

C:\temp\Anaconda\lib\site-packages\callflow\operations\read_config.py in __init__(self, filepath, config_json)
     31 
     32         self.scheme = self.json["scheme"]
---> 33         self.datasets = self.json["datasets"]
     34         self.runName = self.json["run_name"]
     35         self.save_path = os.path.join(self.data_path, ".callflow")

KeyError: 'datasets'

Config file: hpctoolkit-cpi-database/callflow.config.json Environment: CallFlow 1.1.1 / Jupyter Notebook 6.0.3 / Anaconda Python 3.7.6 / Win10 64bit

adintegra avatar Oct 19 '20 20:10 adintegra

Hey @adintegra, Thanks for filling the issue. I was able to reproduce the bug and this is primarily because the new version 1.2.0 deprecated the callflow/operations/read_config.py into a more generic server/argparser.py. I am currently working on fixing this. Will keep you posted.

jarusified avatar Oct 20 '20 19:10 jarusified