moja-global/taswira

Keyerror in ingestion.py when trying to run Taswira

Mohitkumar6122 opened this issue · 3 comments

Describe the bug
It is showing keyerror in ingestion.py file in visualization tool whenever i try to run Taswira.

To Reproduce
Steps to reproduce the behavior:

  1. go to directory GCBM.Visualisation_Tool
  2. go to the conda environment 'taswira' which you have created in your machine.
  3. When i typed following command it is showing me error
    $ taswira indicators.json sample_data/sample_1/output_files/spatial
    sample_data/sample_1/output_files/compiled_gcbm_output.db
    in place of sample_data/sample_1/output_files/spatial i have passed their path .
  4. See error
    KeyError: '2016'
    Expected behavior
    Normally my browser should automatically open up with Taswira's interface.

Screenshots
table

Operating Environment:

  • Ubuntu 20.04.1 LTS

Additional context
Add any other context about the problem here.

@abhineet97 Could you have a look at this issue..?

Hi @Mohitkumar6122.

In the screenshot, I see that you're passing spatial_results from sample_1 but you're passing db_results from sample_2. I believe, that's why you're seeing that error.

In the bug description, you entered the correct command, please try it again:

$ taswira indicators.json /home/mohit/GCBM.Visualisation_Toolsample_data/sample_1/output_files/spatial /home/GCBM.Visualisation_Tool/sample_data/sample_1/output_file/compiled_gcbm_output.db

Let me know if you still see an error.

thanks now it is working