Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gplessm committed May 15, 2018
2 parents 19f95e6 + 33bccb5 commit 174c9cd
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 28 deletions.
19 changes: 19 additions & 0 deletions egoio/db_tables/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,26 @@ class EgoPfHvLine(Base):
geom = Column(Geometry('MULTILINESTRING', 4326))
topo = Column(Geometry('LINESTRING', 4326))

class EgoPfHvLink(Base):
__tablename__ = 'ego_pf_hv_link'
__table_args__ = {'schema': 'grid'}

version = version = Column(Text, primary_key=True, nullable=False)
scn_name = Column(String, primary_key=True, nullable=False, server_default=text("'NEP'::character varying"))
link_id = Column(BigInteger, primary_key=True, nullable=False)
bus0 = Column(BigInteger)
bus1 = Column(BigInteger)
efficiency = Column(Float(53))
p_nom = Column(Numeric, server_default=text("0"))
p_nom_extendable = Column(Boolean, server_default=text("false"))
p_nom_min = Column(Float(53), server_default=text("0"))
p_nom_max = Column(Float(53))
capital_cost = Column(Float(53))
length = Column(Float(53))
terrain_factor = Column(Float(53), server_default=text("1"))
geom = Column(Geometry('MULTILINESTRING', 4326))
topo = Column(Geometry('LINESTRING', 4326))

class EgoPfHvLoad(Base):
__tablename__ = 'ego_pf_hv_load'
__table_args__ = {'schema': 'grid'}
Expand Down
Loading

0 comments on commit 174c9cd

Please sign in to comment.