Skip to content

Commit

Permalink
Merge pull request #5 from mmacata/adjust-imports
Browse files Browse the repository at this point in the history
Move actinia_core imports
  • Loading branch information
mmacata authored Jun 2, 2021
2 parents f5577fc + 44702f4 commit 896ae97
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
12 changes: 6 additions & 6 deletions src/actinia_statistic_plugin/ephemeral_raster_area_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
"""

from flask import jsonify, make_response
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job
from flask.json import dumps
import pickle
import tempfile
from copy import deepcopy
from flask_restful_swagger_2 import swagger
from actinia_core.resources.common.app import auth
from actinia_core.resources.common.api_logger import log_api_call
from actinia_core.core.common.app import auth
from actinia_core.core.common.api_logger import log_api_call
from .response_models import CategoricalStatisticsResultModel, RasterAreaStatsResponseModel
from actinia_core.resources.common.response_models import ProcessingErrorResponseModel
from actinia_core.models.response_models import ProcessingErrorResponseModel

__license__ = "GPLv3"
__author__ = "Sören Gebbert"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
import tempfile
from copy import deepcopy
from flask import jsonify, make_response
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job
from flask_restful_swagger_2 import swagger
from actinia_core.resources.common.app import auth
from actinia_core.resources.common.api_logger import log_api_call
from actinia_core.core.common.app import auth
from actinia_core.core.common.api_logger import log_api_call
from .response_models import AreaUnivarResultModel, RasterAreaUnivarStatsResponseModel
from actinia_core.resources.common.response_models import ProcessingErrorResponseModel
from actinia_core.models.response_models import ProcessingErrorResponseModel

__license__ = "GPLv3"
__author__ = "Sören Gebbert"
Expand Down
14 changes: 7 additions & 7 deletions src/actinia_statistic_plugin/ephemeral_strds_area_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
from copy import deepcopy
from flask import jsonify, make_response
from flask.json import dumps
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.resources.common.exceptions import AsyncProcessError
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job
from actinia_core.core.common.exceptions import AsyncProcessError
from flask_restful_swagger_2 import swagger
from actinia_core.resources.common.app import auth
from actinia_core.resources.common.api_logger import log_api_call
from actinia_core.core.common.app import auth
from actinia_core.core.common.api_logger import log_api_call
from .response_models import CategoricalStatisticsResultModel, RasterAreaStatsResponseModel
from actinia_core.resources.common.response_models import ProcessingErrorResponseModel
from actinia_core.models.response_models import ProcessingErrorResponseModel


__license__ = "GPLv3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
from flask import jsonify, make_response
from copy import deepcopy
from flask.json import dumps
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.resources.common.exceptions import AsyncProcessError
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job
from actinia_core.core.common.exceptions import AsyncProcessError
from flask_restful_swagger_2 import swagger
from actinia_core.resources.common.app import auth
from actinia_core.resources.common.api_logger import log_api_call
from actinia_core.core.common.app import auth
from actinia_core.core.common.api_logger import log_api_call
from .response_models import AreaUnivarResultModel, RasterAreaUnivarStatsResponseModel
from actinia_core.resources.common.response_models import ProcessingErrorResponseModel
from actinia_core.models.response_models import ProcessingErrorResponseModel


__license__ = "GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion src/actinia_statistic_plugin/response_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from flask_restful_swagger_2 import Schema
from copy import deepcopy
from actinia_core.resources.common.response_models import ProcessingResponseModel
from actinia_core.models.response_models import ProcessingResponseModel

__license__ = "GPLv3"
__author__ = "Sören Gebbert"
Expand Down
10 changes: 5 additions & 5 deletions src/actinia_statistic_plugin/strds_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from flask import jsonify, make_response
from copy import deepcopy
from flask_restful_swagger_2 import swagger, Schema
from actinia_core.resources.common.response_models import ProcessingResponseModel, ProcessingErrorResponseModel
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.resources.common.exceptions import AsyncProcessError
from actinia_core.models.response_models import ProcessingResponseModel, ProcessingErrorResponseModel
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job
from actinia_core.core.common.exceptions import AsyncProcessError

__license__ = "GPLv3"
__author__ = "Sören Gebbert"
Expand Down
8 changes: 4 additions & 4 deletions src/actinia_statistic_plugin/strds_sampling_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
from flask.json import dumps as json_dumps
from copy import deepcopy
from flask_restful_swagger_2 import swagger
from actinia_core.resources.common.response_models import ProcessingResponseModel, ProcessingErrorResponseModel
from actinia_core.resources.ephemeral_processing import EphemeralProcessing
from actinia_core.resources.resource_base import ResourceBase
from actinia_core.resources.common.redis_interface import enqueue_job
from actinia_core.models.response_models import ProcessingResponseModel, ProcessingErrorResponseModel
from actinia_core.rest.ephemeral_processing import EphemeralProcessing
from actinia_core.rest.resource_base import ResourceBase
from actinia_core.core.common.redis_interface import enqueue_job

__license__ = "GPLv3"
__author__ = "Sören Gebbert"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_resource_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import time
from flask_restful import Api
from actinia_core.testsuite import ActiniaTestCaseBase, URL_PREFIX
from actinia_core.resources.common.config import global_config
from actinia_core.resources.common.app import flask_app, flask_api
from actinia_core.core.common.config import global_config
from actinia_core.core.common.app import flask_app, flask_api
from actinia_statistic_plugin.endpoints import create_endpoints
from actinia_core.endpoints import create_endpoints as create_actinia_endpoints

Expand Down

0 comments on commit 896ae97

Please sign in to comment.