Skip to content

Commit

Permalink
Merge pull request #184 from openego/features/depricated_python_operator
Browse files Browse the repository at this point in the history
Update depricated PythonOperator import
  • Loading branch information
nailend authored Jan 17, 2024
2 parents e95acf9 + 8429620 commit b750157
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ Added
`PR #903 <https://github.com/openego/eGon-data/pull/903>`_
* Add low flex scenario 'eGon2035_lowflex'
`#822 <https://github.com/openego/eGon-data/issues/822>`_
* Fix depricated python-operator import
`#184 <https://github.com/openego/powerd-data/pull/184>`_


.. _PR #159: https://github.com/openego/eGon-data/pull/159
.. _PR #703: https://github.com/openego/eGon-data/pull/703
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re

from airflow.models.baseoperator import BaseOperator as Operator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator
from sqlalchemy import Column, ForeignKey, Integer, String, Table, orm, tuple_
from sqlalchemy.ext.declarative import declarative_base

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
import os
import random

from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator
from sqlalchemy import ARRAY, Column, Float, Integer, String
from sqlalchemy.dialects.postgresql import CHAR, INTEGER, REAL
from sqlalchemy.ext.declarative import declarative_base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
import os
import tarfile

from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator
from psycopg2.extensions import AsIs, register_adapter
import numpy as np
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/heat_supply/individual_heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
import os
import random

from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator
from psycopg2.extensions import AsIs, register_adapter
from sqlalchemy import ARRAY, REAL, Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Expand Down

0 comments on commit b750157

Please sign in to comment.