Skip to content

Commit

Permalink
Merge pull request #61 from openego/dev
Browse files Browse the repository at this point in the history
Release v0.4.0
  • Loading branch information
gplssm authored Jun 6, 2018
2 parents 174c9cd + 119a7c0 commit 9bf991d
Show file tree
Hide file tree
Showing 16 changed files with 2,536 additions and 1,279 deletions.
27 changes: 25 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
/.idea/*
/ego.io.egg-info/*
# exclude project files
.idea/


# exclude certain types of files
*.doctree
*.txt
*.html
*.js
*.inv
*.pyc
*.ttf
*.woff
*.png
*.css
*.pkl

# exclude locally built docs
doc/_html

# exclude egg-info
ego.io.egg-info/
ego.io.egg-info/*
/egoio.egg-info/PKG-INFO
/egoio.egg-info/SOURCES.txt
/egoio.egg-info/dependency_links.txt
/egoio.egg-info/top_level.txt

#exclude pycaches
/egoio/__pycache__/__init__.cpython-34.pyc
/egoio/tools/__pycache__/__init__.cpython-34.pyc
/egoio/tools/__pycache__/config.cpython-34.pyc
11 changes: 10 additions & 1 deletion egoio/db_tables/boundaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from geoalchemy2.types import Geometry
from sqlalchemy.ext.declarative import declarative_base


Base = declarative_base()
metadata = Base.metadata

Expand Down Expand Up @@ -487,6 +486,16 @@ class BkgVg2506Gem(Base):
)


class FfeOsmNut3(Base):
__tablename__ = 'ffe_osm_nut3'
__table_args__ = {'schema': 'boundaries'}

id = Column(Integer, primary_key=True, server_default=text("nextval('boundaries.ffe_osm_nut3_id_seq'::regclass)"))
version = Column(Text)
nuts_code = Column(String(5))
geom = Column(Geometry('MULTIPOLYGON', 3035), index=True)


class OsmPostcode(Base):
__tablename__ = 'osm_postcode'
__table_args__ = {'schema': 'boundaries'}
Expand Down
1 change: 0 additions & 1 deletion egoio/db_tables/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from geoalchemy2.types import Geometry
from sqlalchemy.ext.declarative import declarative_base


Base = declarative_base()
metadata = Base.metadata

Expand Down
1 change: 0 additions & 1 deletion egoio/db_tables/demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from geoalchemy2.types import Geometry
from sqlalchemy.ext.declarative import declarative_base


Base = declarative_base()
metadata = Base.metadata

Expand Down
1 change: 0 additions & 1 deletion egoio/db_tables/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from sqlalchemy import Column, Float, String
from sqlalchemy.ext.declarative import declarative_base


Base = declarative_base()
metadata = Base.metadata

Expand Down
4 changes: 3 additions & 1 deletion egoio/db_tables/emission.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# coding: utf-8
from sqlalchemy import MetaData


metadata = MetaData()



1 change: 0 additions & 1 deletion egoio/db_tables/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from geoalchemy2.types import Geometry
from sqlalchemy.ext.declarative import declarative_base


Base = declarative_base()
metadata = Base.metadata

Expand Down
Loading

0 comments on commit 9bf991d

Please sign in to comment.