Skip to content

Commit

Permalink
Merge pull request #133 from rl-institut/release/v1.0.1
Browse files Browse the repository at this point in the history
Release/v1.0.1
  • Loading branch information
christian-rli authored Feb 13, 2020
2 parents 09b9cce + a9403cd commit 8a8b045
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extension-pkg-whitelist=

# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS,config,saio_table_models.py
ignore=CVS,config,saio_table_models.py,oep_models.py

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ Here is a template for new release sections
-
```

## [v1.0.1] - 2020-02-12

### Added
- new migration

### Changed
- csvrow table now has field "hights"
- oep_models OEP schemas
- saio_table_models OEP schemas
- pylintr ignores oep_models.py

### Removed
- unnecessary OEP schemas


## [1.0.0] - 2019-09-19

### Added
Expand Down
4 changes: 2 additions & 2 deletions oep_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


# ##########################################SQLAlchemy setup########################################
SCHEMA_1 = 'model_draft'
SCHEMA_1 = 'climate'
SCHEMA_2 = 'supply'
engine = sah.get_engine('oep_engine')
metadata_1 = MetaData(schema=SCHEMA_1, bind=engine)
Expand Down Expand Up @@ -196,4 +196,4 @@ class OpenFredTimesSeries(Base):
# contains open_FRED related tables as SQLAlchemy class
open_fred_classes = mapped_classes(metadata_1)
ego_dp_res_classes = ppr_mapping(metadata_2)
open_fred_ts_classes = ts_mapping(metadata_1)
open_fred_ts_classes = ts_mapping(metadata_2)
6 changes: 3 additions & 3 deletions saio_table_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sqlahelper as sah
import saio

saio.register_schema("model_draft", sah.get_engine('oep_engine'))
from saio.model_draft import openfred_feedin_wind_2016 as Timeseries
from saio.model_draft import openfred_powerplants as Powerplants
saio.register_schema("supply", sah.get_engine('oep_engine'))
from saio.supply import openfred_feedin_wind_2016 as Timeseries
from saio.supply import openfred_powerplants as Powerplants
1 change: 1 addition & 0 deletions serial_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def wseries_fetch_data_single_point(request):
CsvRow.objects.all().delete()
for record in oep_query:
timespan_id = record.Series.timespan_id

height = record.Series.height

if timespan_id not in timespan_ids:
Expand Down

0 comments on commit 8a8b045

Please sign in to comment.