moja-global / taswira

Taswira: An interactive tool for visualising GCBM output.
Mozilla Public License 2.0
3 stars 6 forks source link

Keyerror in ingestion.py when trying to run Taswira #41

Closed Mohitkumar6122 closed 4 years ago

Mohitkumar6122 commented 4 years ago

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:

Additional context Add any other context about the problem here.

Mohitkumar6122 commented 4 years ago

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

abhineet97 commented 4 years ago

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.

Mohitkumar6122 commented 4 years ago

thanks now it is working