Skip to content

Commit

Permalink
Add option to wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Feb 14, 2025
1 parent 81d2e7e commit 1f20e63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pyrogue/utilities/fileio/_StreamWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class StreamWriter(pyrogue.DataWriter):
"""Stream Writer Wrapper"""

def __init__(self, *, configStream={}, writer=None, **kwargs):
def __init__(self, *, configStream={}, writer=None, rawMode=False, **kwargs):
pyrogue.DataWriter.__init__(self, **kwargs)
self._configStream = configStream

Expand All @@ -30,6 +30,9 @@ def __init__(self, *, configStream={}, writer=None, **kwargs):
else:
self._writer = writer

if rawMode:
self_writer.setRaw(True)

# Connect configuration stream
for k,v in self._configStream.items():
pyrogue.streamConnect(v, self._writer.getChannel(k))
Expand Down

0 comments on commit 1f20e63

Please sign in to comment.