Skip to content
Snippets Groups Projects

configure host in factory module

2 files
+ 12
16
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -5,23 +5,18 @@ from ..edge import EdgeFactory, MiniSeedFactory
def get_edge_factory(
data_type="variation", interval="second", **kwargs
data_type="variation",
host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval="second",
**kwargs
) -> TimeseriesFactory:
return EdgeFactory(
host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval=interval,
type=data_type,
**kwargs
)
return EdgeFactory(host=host, interval=interval, type=data_type, **kwargs)
def get_miniseed_factory(
data_type="variation", interval="second", **kwargs
data_type="variation",
host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval="second",
**kwargs
) -> TimeseriesFactory:
return MiniSeedFactory(
convert_channels=("U", "V", "W"),
host=os.getenv("EDGE_HOST", "127.0.0.1"),
interval=interval,
type=data_type,
**kwargs
)
return MiniSeedFactory(host=host, interval=interval, type=data_type, **kwargs)
Loading