Skip to content

Commit

Permalink
Forgot these
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-1000 committed Jan 22, 2024
1 parent 9606d1b commit 04df41b
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 18 deletions.
3 changes: 2 additions & 1 deletion datastore/data-loader/client_fmi_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from multiprocessing import cpu_count
from pathlib import Path
from time import perf_counter
from typing import List, Tuple
from typing import List
from typing import Tuple

import datastore_pb2 as dstore
import datastore_pb2_grpc as dstore_grpc
Expand Down
3 changes: 2 additions & 1 deletion datastore/data-loader/client_knmi_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from multiprocessing import cpu_count
from pathlib import Path
from time import perf_counter
from typing import List, Tuple
from typing import List
from typing import Tuple

import datastore_pb2 as dstore
import datastore_pb2_grpc as dstore_grpc
Expand Down
3 changes: 2 additions & 1 deletion datastore/examples/big_input_workaround/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import os
import sys
from collections import deque
from datetime import datetime, timezone
from datetime import datetime
from datetime import timezone

import datastore_pb2 as dstore
import datastore_pb2_grpc as dstore_grpc
Expand Down
3 changes: 2 additions & 1 deletion datastore/examples/clients/python/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Generate protobuf code with following command from top level directory:
# python -m grpc_tools.protoc --proto_path=datastore/protobuf datastore.proto --python_out=examples/clients/python --grpc_python_out=examples/clients/python # noqa: E501
import os
from datetime import datetime, timezone
from datetime import datetime
from datetime import timezone

import datastore_pb2 as dstore
import datastore_pb2_grpc as dstore_grpc
Expand Down
3 changes: 2 additions & 1 deletion datastore/load-test/grpc_user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import time
from typing import Any, Callable
from typing import Any
from typing import Callable

import grpc
import grpc.experimental.gevent as grpc_gevent
Expand Down
3 changes: 2 additions & 1 deletion datastore/load-test/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import grpc_user
from google.protobuf.timestamp_pb2 import Timestamp
from locust import task
from shapely import buffer, wkt
from shapely import buffer
from shapely import wkt

parameters = ["ff", "dd", "rh", "pp", "tn"]
# fmt: off
Expand Down
3 changes: 2 additions & 1 deletion datastore/tstester/pgopbackend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod

import common
import psycopg2
Expand Down
3 changes: 2 additions & 1 deletion datastore/tstester/postgissbe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import sys

import common
from pgopbackend import PsqlBE, Psycopg2BE
from pgopbackend import PsqlBE
from pgopbackend import Psycopg2BE
from storagebackend import StorageBackend

# NOTE: we assume that the risk of SQL injection is zero in this context
Expand Down
3 changes: 2 additions & 1 deletion datastore/tstester/storagebackend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod


class StorageBackend(ABC):
Expand Down
3 changes: 2 additions & 1 deletion datastore/tstester/timescaledbsbe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import sys

import common
from pgopbackend import PsqlBE, Psycopg2BE
from pgopbackend import PsqlBE
from pgopbackend import Psycopg2BE
from storagebackend import StorageBackend

# NOTE: we assume that the risk of SQL injection is zero in this context
Expand Down
3 changes: 2 additions & 1 deletion datastore/tstester/tstester.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import json
import random
import sys
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod

import common
from netcdfsbe_tsmdatainpostgis import NetCDFSBE_TSMDataInPostGIS
Expand Down
3 changes: 2 additions & 1 deletion ingest/src/esoh/ingest/messages.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import uuid
from datetime import datetime, timezone
from datetime import datetime
from datetime import timezone

import xarray as xr
from esoh.ingest.bufr.create_mqtt_message_from_bufr import (
Expand Down
11 changes: 5 additions & 6 deletions ingest/test/test_verify_json_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

import pytest
import xarray as xr
from esoh.ingest.bufr.bufresohmsg_py import (
init_bufr_schema_py,
init_bufrtables_py,
init_oscar_py,
)
from esoh.ingest.bufr.bufresohmsg_py import init_bufr_schema_py
from esoh.ingest.bufr.bufresohmsg_py import init_bufrtables_py
from esoh.ingest.bufr.bufresohmsg_py import init_oscar_py
from esoh.ingest.main import IngestToPipeline
from jsonschema import Draft202012Validator, ValidationError
from jsonschema import Draft202012Validator
from jsonschema import ValidationError


@pytest.mark.timeout(1000)
Expand Down

0 comments on commit 04df41b

Please sign in to comment.