Skip to content

Commit

Permalink
don't mentioned StreamConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Mar 15, 2024
1 parent 291ed69 commit a8e78aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ioos_qc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, source, version=None, default_stream_key='_stream'):
# Return a list with just one ContextConfig
self._calls += list(ContextConfig(self.config).calls)
elif dict_depth(self.config) >= 4:
# This is a StreamConfig
# This is a Config
self._calls += list(ContextConfig(odict(streams=self.config)).calls)
else:
# This is a QcConfig
Expand Down Expand Up @@ -353,7 +353,7 @@ def add(self, source) -> None:


class ContextConfig:
"""A collection of a Region, a TimeWindow and a list of StreamConfig objects
"""A collection of a Region, a TimeWindow and a list of Config objects
Defines a set of quality checks to run against multiple input streams.
This can include a region and a time window to subset any DataStreams by before running checks.
Expand All @@ -366,11 +366,11 @@ class ContextConfig:
ending: 2020-04-01T00:00:00Z
streams:
variable1: # stream_id
qartod: # StreamConfig
qartod: # Config
location_test:
bbox: [-80, 40, -70, 60]
variable2: # stream_id
qartod: # StreamConfig
qartod: # Config
gross_range_test:
suspect_span: [1, 11]
fail_span: [0, 12]
Expand All @@ -382,7 +382,7 @@ class ContextConfig:
config (odict): dict representation of the parsed ContextConfig source
region (GeometryCollection): A `shapely` object representing the valid geographic region
window (namedtuple): A TimeWindow object representing the valid time period
streams (odict): dict representation of the parsed StreamConfig objects
streams (odict): dict representation of the parsed Config objects
"""

def __init__(self, source: ConfigTypes):
Expand Down

0 comments on commit a8e78aa

Please sign in to comment.