Skip to content

Commit

Permalink
aggregator_agent: fix doc build by aliasing G3 classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasself committed Nov 6, 2019
1 parent 9aa8917 commit 13f329b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions agents/aggregator/aggregator_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
if os.getenv('OCS_DOC_BUILD') != 'True':
from spt3g import core
import so3g

G3Module = core.G3Module
else:
# Alias classes that are needed for clean import in docs build.
G3Module = object

def generate_id(hksess):
"""
Expand Down Expand Up @@ -199,7 +202,7 @@ def to_frame(self, hksess=None, clear=False):
return frame


class G3FileRotator(core.G3Module):
class G3FileRotator(G3Module):
"""
G3 module which handles file rotation.
After time_per_file has elapsed, the rotator will end that file and create
Expand Down
2 changes: 1 addition & 1 deletion docs/aggregator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,5 @@ should exist and belong to the `ocs` user prior to contianer startup.
API
---

.. autoclass:: agents.aggregator.aggregator_agent.DataAggregator
.. autoclass:: agents.aggregator.aggregator_agent.AggregatorAgent
:members: initialize, start_aggregate, add_feed

0 comments on commit 13f329b

Please sign in to comment.