Skip to content
Snippets Groups Projects

[RTADPA BW tests] Test feasibility of copying HLT2 output to read into sprucing test

Merged Ross John Hunter requested to merge rjhunter-chained-test-feasibility into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -15,7 +15,7 @@ import os
import atexit
import tempfile
import logging
import datetime
from datetime import datetime
import shutil
from Moore.qmtest.context import download_mdf_inputs_locally
@@ -38,7 +38,7 @@ def main():
logging.basicConfig(
format='%(levelname)-7s %(message)s',
level=(logging.DEBUG if args.debug else logging.INFO))
level=logging.INFO)
cache_dir = default_cache_dirs()
if not os.path.isdir(cache_dir):
@@ -62,7 +62,7 @@ def main():
before_copy = datetime.now()
kB_to_GB = 1e3
downloaded_path = download_mdf_inputs_locally(
FILE_TO_COPY,
[FILE_TO_COPY],
cache_dir,
max_size=300 * kB_to_GB * 2e4) # Guesses as to output size and n_events in the FULL stream TODO improve
logging.info(f"Downloaded {downloaded_path}. This took: {datetime.now() - before_copy}")
Loading