Skip to content
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

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Scenci #109

merged 1 commit into from
Sep 17, 2018

Conversation

gidden
Copy link
Member

@gidden gidden commented Sep 4, 2018

Closes #108

@gidden gidden changed the base branch from master to hackathon-prs September 4, 2018 15:04
"""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

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)

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'

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)

raise IOError(
'Failed download with user/pass: {}/{}'.format(username, password))

import glob

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

import glob

for filename in glob.iglob('./*', recursive=True):
print(filename)

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

import requests
import tarfile

import ixmp

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


import ixmp

from paths import dbpath

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

@gidden gidden changed the title (WIP!) Scenci Scenci Sep 10, 2018
@gidden
Copy link
Member Author

gidden commented Sep 10, 2018

@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.

@gidden gidden merged commit 2307efe into hackathon-prs Sep 17, 2018
gidden added a commit that referenced this pull request Sep 17, 2018
gidden added a commit that referenced this pull request Nov 13, 2018
gidden added a commit that referenced this pull request Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants