OSeMOSYS / osemosys_global

A global power system model generator for OSeMOSYS
https://osemosys-global.readthedocs.io/
GNU Affero General Public License v3.0
27 stars 17 forks source link

Inconsistent use of tabs and spaces in indentation #200

Closed ReemaMohanty closed 2 months ago

ReemaMohanty commented 2 months ago

Data In Question

ember_yearly_electricity_data.csv

Type of data issue.

Missing Data

Does the data in question have an existing issue?

No response

Issue

An error shows "Inconsistent use of tabs and spaces in indentation" while running the snakemake command.

Suggested Data Source

No response

Additional Info

No response

maartenbrinkerink commented 2 months ago

Hi @ReemaMohanty did you try running the workflow including the latest changes in Master? If so, could you share the error log?

ReemaMohanty commented 2 months ago

Yes, I did. I have written the error message below.

TabError in file , line 177: inconsistent use of tabs and spaces in indentation: 'resources/data/ember_yearly_electricity_data.csv' File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tokenize.py", line 541, in _generate_tokens_from_c_tokenizer File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tokenize.py", line 537, in _generate_tokens_from_c_tokenizer

maartenbrinkerink commented 2 months ago

It does not point to a specific log file for further info on the error? If not could you screenshot the output when the error pops up and share it here? The workflow runs fine on my machine so I doubt that it is an issue related to the specific file (ember).

ReemaMohanty commented 2 months ago
Screenshot 2024-09-19 at 11 39 33

Please find the screen shot above.

maartenbrinkerink commented 2 months ago

@ReemaMohanty can you try removing the file (ember_yearly_electricity_data.csv), remove all folders from the results folder, and rerun the workflow?

maartenbrinkerink commented 2 months ago

Indentation issue solved after latest commit on master.