Skip to content

Commit fbcbfab

Browse files
committed
FF: fix phi acceptable range
1 parent 972e9dc commit fbcbfab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openfast_toolbox/fastfarm/FASTFarmCaseCreation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def _checkInputs(self):
342342
if self.Cmeander <= 0: raise ValueError('Cmeander cannot be negative')
343343
if self.tmax <= 0: raise ValueError('A positive tmax should be requested')
344344
if self.zbot <= 0: raise ValueError('zbot should be greater than 0 (recommended 1)')
345-
if self.phi_deg < 0: raise ValueError('phi_deg should be given in the interval [0, 360)')
345+
if self.phi_deg <-180 or self.phi_deg>180: raise ValueError('phi_deg should be given in the interval [-180, 180]')
346346

347347
# Ensure quantities are list
348348
self.vhub = [self.vhub] if isinstance(self.vhub,(float,int)) else self.vhub

0 commit comments

Comments
 (0)