Skip to content

Commit

Permalink
added logic to prevent seed_x and see_u from being specified at the s…
Browse files Browse the repository at this point in the history
…ame time in __init__
  • Loading branch information
connor-krill committed Sep 1, 2023
1 parent 738e25b commit 6236297
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/UQpy/reliability/taylor_series/FORM.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def __init__(
self.x_record: list = []
"""Record of all iteration points in the parameter space **X**."""

if (seed_x is not None) and (seed_u is not None):
raise ValueError('UQpy: Only one input (seed_x or seed_u) may be provided')
if self.seed_u is not None:
self.run(seed_u=self.seed_u)
elif self.seed_x is not None:
Expand Down

0 comments on commit 6236297

Please sign in to comment.