Skip to content

Commit

Permalink
added epsilon to t-fast check
Browse files Browse the repository at this point in the history
  • Loading branch information
bad-ants-fleet committed Sep 5, 2022
1 parent c217d78 commit ae042e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drtransformer/drtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ def main():

logger.info((f'--t-fast: {args.t_fast} s => {args.minh} kcal/mol barrier height '
f'and {1/args.t_fast} /s rate at k0 = {args.k0}'))
if not args.force and args.t_fast and args.t_fast * 10 > args.t_ext:
if not args.force and args.t_fast and args.t_fast * 10 > args.t_ext + 0.000001:
raise SystemExit(
('ERROR: Conflicting Settings: '
(f'ERROR: Conflicting Settings: {args.t_fast=} {args.t_ext=} '
'Arguments must be such that "--t-fast" * 10 > "--t-ext".\n'
' => An instant folding time must be at least 10x '
'shorter than the time of nucleotide extension. '
Expand Down

0 comments on commit ae042e3

Please sign in to comment.