Skip to content

Commit

Permalink
Update main_pc_apply_drift.py
Browse files Browse the repository at this point in the history
Solves #7 confusion
  • Loading branch information
HilaManor authored Aug 14, 2024
1 parent a057f63 commit c369ad3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/main_pc_apply_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
args = parser.parse_args()
args.shift_x0_for_np = True
args.sub_iters = None

# Input check
if args.drift_start < args.drift_end:
raise ValueError('Drift start must be greater than drift end')

set_reproducability(args.seed)

Expand Down

0 comments on commit c369ad3

Please # to comment.