Skip to content

Add custom config file keyword argument #18

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

Open
gplssm opened this issue Oct 21, 2016 · 5 comments
Open

Add custom config file keyword argument #18

gplssm opened this issue Oct 21, 2016 · 5 comments
Assignees

Comments

@gplssm
Copy link
Contributor

gplssm commented Oct 21, 2016

Move oemof.db.connection() to close#13. Then ego.io and add filename keyword argument to it.

@gplssm gplssm added this to the Release v0.2 milestone Oct 21, 2016
@gplssm gplssm self-assigned this Oct 21, 2016
@Ludee
Copy link
Member

Ludee commented Jan 26, 2017

Is this issue closed? @gplssm
If not I move it to v0.3

@nesnoj
Copy link
Member

nesnoj commented Feb 4, 2017

Related to #13 (v0.3)

@nesnoj nesnoj self-assigned this Feb 4, 2017
@gplssm
Copy link
Contributor Author

gplssm commented Jun 21, 2017

ego.io now () has it's own config file that is created when egoio.tools.db.connection() is called and no config file exists. Data processing now uses an OEDB connection via egoio.

Tested implementation by following query script

from egoio.tools.db import connection
from egoio.db_tables.scenario import EgoSlpParameter
from sqlalchemy.orm import sessionmaker
import pandas as pd

Session = sessionmaker(bind=connection(section='oep'))
session=Session()

data = session.query(EgoSlpParameter)

print(pd.read_sql_query(data.statement, session.bind))

@gplssm gplssm modified the milestones: Release ego v0.3.1, Release ego v0.3 Jun 29, 2017
@gplssm
Copy link
Contributor Author

gplssm commented Jun 29, 2017

We won't resolve this entirely within v0.3.0 due to necessary changes in ego.powerflow. So, I postponed it.

@nesnoj
Copy link
Member

nesnoj commented Aug 30, 2017

related to #123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants