Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pygrt/pymod.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def __init__(self, modarr0:np.ndarray, depsrc:float, deprcv:float):
self.hasLiquid = True

self.vmin = min(np.min(va), np.min(vb))
# 最小非零速度
nonzero_vb = vb[vb > 0]
self.vmin = min(np.min(va), np.min(nonzero_vb)) if nonzero_vb.size else np.min(va)
self.vmax = max(np.max(va), np.max(vb))


Expand Down