owid / co2-data

Data on CO2 and greenhouse gas emissions by Our World in Data
https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions
639 stars 217 forks source link

Update main.py #21

Closed jdmorales89 closed 2 years ago

jdmorales89 commented 2 years ago

Corrected file names for getting 'INPUT_DIR', 'OUTPUT_DIR', and 'get_owid_variable'

edomt commented 2 years ago

Hi @jdmorales89

I'm not sure if you meant to push this to this public repo? It looks like a personal project from the ipynb notebook.

jdmorales89 commented 2 years ago

Hi @edomt Yes, I'm new to this, so sorry if I'm not doing it properly. I tried to run your main.py script and I couldn't because of the following imports:

from scripts import INPUT_DIR, OUTPUT_DIR
from scripts.utils import get_owid_variable

I figured the folder structure or some file names were changed. I replace them with the following, and now it's working:

from __init__ import INPUT_DIR, OUTPUT_DIR
from utils import get_owid_variable

Regarding the other commits, yes! it's a personal project. Perhaps I should put it in an independent repository. Sorry for the confusion. Thank you and I wish you a happy new year.