Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /DiamondLightSource_python-murfey /src /murfey /cli /dummy.py
| from __future__ import annotations | |
| import argparse | |
| from pathlib import Path | |
| from murfey.util.dummy_setup import generate_data, initialise | |
| def run(): | |
| parser = argparse.ArgumentParser(description="Start the Murfey client") | |
| parser.add_argument( | |
| "dummy_dir", | |
| type=str, | |
| help="Directory to launch dummy data production", | |
| ) | |
| parser.add_argument( | |
| "-t", | |
| "--timeout", | |
| dest="timeout", | |
| type=int, | |
| help="Number of seconds after which dummy data collection will finish", | |
| default=60, | |
| ) | |
| parser.add_argument( | |
| "-p", | |
| "--pause", | |
| dest="pause", | |
| type=int, | |
| help="Number of seconds after which dummy data collection will finish", | |
| default=10, | |
| ) | |
| args = parser.parse_args() | |
| base_path = initialise(Path(args.dummy_dir)) | |
| generate_data(base_path, timeout=args.timeout, pause=args.pause) | |
Xet Storage Details
- Size:
- 919 Bytes
- Xet hash:
- 7770be5441883acfcf9d15b05a83ff04aa33d00511c9ec1b59b4d7f13f7dbd37
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.