Skip to content

Commit

Permalink
updated usage message (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey authored Nov 12, 2024
1 parent 2be1eff commit 8d1c87e
Showing 1 changed file with 6 additions and 3 deletions.
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

0 comments on commit 8d1c87e

Please sign in to comment.