-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scenci #109
Scenci #109
Conversation
message_ix/core.py
Outdated
"""Read Excel file data and load into the scenario. | ||
|
||
Parameters | ||
---------- | ||
fname : string | ||
path to file | ||
add_units : bool | ||
add missing units, if any, to the platform instance. default: False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (80 > 79 characters)
tests/ci/download_db.py
Outdated
username = os.environ['MESSAGE_IX_CI_USER'] | ||
password = os.environ['MESSAGE_IX_CI_PW'] | ||
|
||
url = 'https://data.ene.iiasa.ac.at/continuous_integration/scenario_db/db.tar.gz' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (81 > 79 characters)
tests/ci/download_db.py
Outdated
raise IOError( | ||
'Failed download with user/pass: {}/{}'.format(username, password)) | ||
|
||
import glob |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E402 module level import not at top of file
tests/ci/download_db.py
Outdated
import glob | ||
|
||
for filename in glob.iglob('./*', recursive=True): | ||
print(filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E111 indentation is not a multiple of four
tests/ci/download_db.py
Outdated
import requests | ||
import tarfile | ||
|
||
import ixmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'ixmp' imported but unused
tests/ci/download_db.py
Outdated
|
||
import ixmp | ||
|
||
from paths import dbpath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'paths.dbpath' imported but unused
@OFR-IIASA I rebased this into a single commit for easier managing. Please take note if you are building more commits on top of it. |
e6aea82
to
c87d5ba
Compare
…ization for models including MACRO.
…ization for models including MACRO. (#109)
…ization for models including MACRO. (#109)
…ization for models including MACRO. (#109)
Closes #108