Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated usage message #232

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions examples/swmr_multiprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run(self):
last_count = row_count
else:
self.log.info(f"Read - sleeping for {self._sleep_time}")
time.sleep(self._sleep_time) # no updates so sleep for a bi
time.sleep(self._sleep_time) # no updates so sleep for a bit
if row_count >= self._total_rows:
self.log.info("Read - all data consumed")
break
Expand Down Expand Up @@ -138,9 +138,12 @@ def run(self):
compression = None
if len(sys.argv) > 1:
if sys.argv[1] in ("-h", "--help"):
print(f"usage: {sys.argv[0]} [filename] [blocksize] [loopcount]")
print(f"usage: {sys.argv[0]} [filename] [blocksize] [loopcount] [compression]")
sys.exit(0)
fname = sys.argv[1]
if not fname.endswith(".h5"):
print("use .h5 extension for filename")
sys.exit(0)
if len(sys.argv) > 2:
block_size = int(sys.argv[2])
if len(sys.argv) > 3:
Expand All @@ -156,7 +159,7 @@ def run(self):

logging.info("Starting reader")
reader.start()
logging.info("Starting reader")
logging.info("Starting writer")
writer.start()

logging.info("Waiting for writer to finish")
Expand Down