Skip to content

Commit

Permalink
Merge pull request #88 from openego/release/v0.4.8
Browse files Browse the repository at this point in the history
Release/v0.4.8
  • Loading branch information
nesnoj authored May 28, 2021
2 parents 0acd473 + 5f43187 commit cfdf55a
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 39 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Here is a template for new release sections

### Changed

## [0.4.8] 2021-05-29

### Changed
- replace data type Numeric by Float(53) #86
- set default values for database connection details to oep connection details #83

## [0.4.7] 2019-08-29

### Changed
Expand Down
28 changes: 14 additions & 14 deletions egoio/db_tables/demand.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ class EgoDpLoadarea(Base):
version = Column(Text, primary_key=True, nullable=False)
id = Column(Integer, primary_key=True, nullable=False)
subst_id = Column(Integer)
area_ha = Column(Numeric)
area_ha = Column(Float(53))
nuts = Column(String(5))
rs_0 = Column(String(12))
ags_0 = Column(String(12))
otg_id = Column(Integer)
un_id = Column(Integer)
zensus_sum = Column(Integer)
zensus_count = Column(Integer)
zensus_density = Column(Numeric)
ioer_sum = Column(Numeric)
zensus_density = Column(Float(53))
ioer_sum = Column(Float(53))
ioer_count = Column(Integer)
ioer_density = Column(Numeric)
sector_area_residential = Column(Numeric)
sector_area_retail = Column(Numeric)
sector_area_industrial = Column(Numeric)
sector_area_agricultural = Column(Numeric)
sector_area_sum = Column(Numeric)
sector_share_residential = Column(Numeric)
sector_share_retail = Column(Numeric)
sector_share_industrial = Column(Numeric)
sector_share_agricultural = Column(Numeric)
sector_share_sum = Column(Numeric)
ioer_density = Column(Float(53))
sector_area_residential = Column(Float(53))
sector_area_retail = Column(Float(53))
sector_area_industrial = Column(Float(53))
sector_area_agricultural = Column(Float(53))
sector_area_sum = Column(Float(53))
sector_share_residential = Column(Float(53))
sector_share_retail = Column(Float(53))
sector_share_industrial = Column(Float(53))
sector_share_agricultural = Column(Float(53))
sector_share_sum = Column(Float(53))
sector_count_residential = Column(Integer)
sector_count_retail = Column(Integer)
sector_count_industrial = Column(Integer)
Expand Down
32 changes: 16 additions & 16 deletions egoio/db_tables/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,21 @@ class EgoDpMvGriddistrict(Base):
gem_clean = Column(Integer)
zensus_sum = Column(Integer)
zensus_count = Column(Integer)
zensus_density = Column(Numeric)
population_density = Column(Numeric)
zensus_density = Column(Float(53))
population_density = Column(Float(53))
la_count = Column(Integer)
area_ha = Column(Numeric)
area_ha = Column(Float(53))
la_area = Column(Numeric(10, 1))
free_area = Column(Numeric(10, 1))
area_share = Column(Numeric(4, 1))
consumption = Column(Numeric)
consumption_per_area = Column(Numeric)
consumption = Column(Float(53))
consumption_per_area = Column(Float(53))
dea_cnt = Column(Integer)
dea_capacity = Column(Numeric)
dea_capacity = Column(Float(53))
lv_dea_cnt = Column(Integer)
lv_dea_capacity = Column(Numeric)
lv_dea_capacity = Column(Float(53))
mv_dea_cnt = Column(Integer)
mv_dea_capacity = Column(Numeric)
mv_dea_capacity = Column(Float(53))
geom_type = Column(Text)
geom = Column(Geometry('MULTIPOLYGON', 3035), index=True)

Expand Down Expand Up @@ -303,21 +303,21 @@ class EgoDpMvGriddistrict(Base):
Column('gem_clean', Integer),
Column('zensus_sum', Integer),
Column('zensus_count', Integer),
Column('zensus_density', Numeric),
Column('population_density', Numeric),
Column('zensus_density', Float(53)),
Column('population_density', Float(53)),
Column('la_count', Integer),
Column('area_ha', Numeric),
Column('area_ha', Float(53)),
Column('la_area', Numeric(10, 1)),
Column('free_area', Numeric(10, 1)),
Column('area_share', Numeric(4, 1)),
Column('consumption', Numeric),
Column('consumption_per_area', Numeric),
Column('consumption', Float(53)),
Column('consumption_per_area', Float(53)),
Column('dea_cnt', Integer),
Column('dea_capacity', Numeric),
Column('dea_capacity', Float(53)),
Column('lv_dea_cnt', Integer),
Column('lv_dea_capacity', Numeric),
Column('lv_dea_capacity', Float(53)),
Column('mv_dea_cnt', Integer),
Column('mv_dea_capacity', Numeric),
Column('mv_dea_capacity', Float(53)),
Column('geom_type', Text),
Column('geom', Geometry('MULTIPOLYGON', 3035), index=True),
schema='grid'
Expand Down
8 changes: 4 additions & 4 deletions egoio/db_tables/supply.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,15 @@ class EgoDpResPowerplant(Base):
Column('version', Text),
Column('id', BigInteger),
Column('start_up_date', DateTime),
Column('electrical_capacity', Numeric),
Column('electrical_capacity', Float(53)),
Column('generation_type', Text),
Column('generation_subtype', String),
Column('thermal_capacity', Numeric),
Column('thermal_capacity', Float(53)),
Column('city', String),
Column('postcode', String),
Column('address', String),
Column('lon', Numeric),
Column('lat', Numeric),
Column('lon', Float(53)),
Column('lat', Float(53)),
Column('gps_accuracy', String),
Column('validation', String),
Column('notification_reason', String),
Expand Down
11 changes: 7 additions & 4 deletions egoio/tools/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,14 @@ def get_connection_details(section):
Used for configuration file parser language.
"""
print('Please enter your connection details:')
dialect = input('Enter input value for `dialect` (default: psycopg2): ') or 'psycopg2'
dialect = input('Enter input value for `dialect` (default: oedialect): ') \
or 'oedialect'
username = input('Enter value for `username`: ')
database = input('Enter value for `database`: ')
host = input('Enter value for `host`: ')
port = input('Enter value for `port` (default: 5432): ') or '5432'
database = input('Enter value for `database` (default: oedb): ') or 'oedb'
host = input(
'Enter value for `host` (default: openenergy-platform.org): ') or \
'openenergy-platform.org'
port = input('Enter value for `port` (default: 80): ') or '80'

cfg = cp.ConfigParser()
cfg.add_section(section)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.7',
version='0.4.8',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
Expand Down

0 comments on commit cfdf55a

Please sign in to comment.