Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Apr 9, 2022
1 parent f1d626c commit bdcbfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UQpy/dimension_reduction/pod/baseclass/POD.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self,
"""An array containing the solution snapshots reduced in the spatial dimension."""
self.logger = logging.getLogger(__name__)

if n_modes is None and reconstruction_percentage is None:
if n_modes is not None and reconstruction_percentage is not None:
raise ValueError("Either a number of modes or a reconstruction percentage must be chosen, not both.")

if reconstruction_percentage is not None and reconstruction_percentage <= 0:
Expand Down

0 comments on commit bdcbfae

Please sign in to comment.