Skip to content

Commit

Permalink
Update documentation for TdmsWriter mode parameter
Browse files Browse the repository at this point in the history
Fixed #261
  • Loading branch information
adamreeve committed Feb 20, 2022
1 parent bf4d2f6 commit 5ef9ceb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nptdms/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ def __init__(self, file, mode='w'):
:param file: Either the path to the tdms file to open or an already
opened file.
:param mode: Either 'w' to open a new file or 'a' to append to an
existing TDMS file.
:param mode: The mode to open the file with, used when ``file`` is a file path.
This will be passed through to Python's ``open`` function with 'b' appended
to ensure the file is opened in binary mode.
For example, use 'w' (the default) to open a new file or 'a' to append to an existing TDMS file.
"""
self._file = None
self._file_path = None
Expand Down

0 comments on commit 5ef9ceb

Please sign in to comment.