Skip to content

Commit

Permalink
fail randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Oct 17, 2024
1 parent 6b0c4b0 commit d149421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hyp3_srg/back_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import argparse
import logging
import os
import random
import zipfile
from pathlib import Path
from typing import Iterable, Optional
Expand Down Expand Up @@ -109,6 +110,8 @@ def back_project(
work_dir: Working directory for processing
gpu: Use the GPU-based version of the workflow
"""
assert random.randint(0, 2) == 0

if use_gslc_prefix:
if not (bucket and bucket_prefix):
raise ValueError('bucket and bucket_prefix must be given if use_gslc_prefix is True')
Expand Down
3 changes: 3 additions & 0 deletions src/hyp3_srg/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import argparse
import logging
import random
import shutil
from os import mkdir
from pathlib import Path
Expand Down Expand Up @@ -290,6 +291,8 @@ def time_series(
bucket_prefix: Add a bucket prefix to the product(s)
work_dir: Working directory for processing
"""
assert random.randint(0, 2) == 0

if work_dir is None:
work_dir = Path.cwd()
sbas_dir = work_dir / 'sbas'
Expand Down

0 comments on commit d149421

Please sign in to comment.