Skip to content

Commit

Permalink
Stopped warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeBell committed Mar 5, 2025
1 parent bf90105 commit f261895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ShipGen/Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@
#Set up Conditioning Vectors:
num_WL_Steps = 101

old_err = np.seterr(all='ignore')
VolVec = np.log10(Y[:,1*num_WL_Steps:2*num_WL_Steps])
idx = np.where(np.isnan(VolVec))

VolVec[idx] = -6.0 #fix nan to dummy value
np.seterr(**old_err)


DdVec = DesVec[:,4]
BOAVec = np.amax(LenRatios[:,1:3], axis=1)
Expand Down

0 comments on commit f261895

Please sign in to comment.