Skip to content

Commit 484cece

Browse files
committed
Add split_stable definition to shot_db_ops.py
1 parent e9ee753 commit 484cece

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

shot_db_ops.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ def is_split_unstable(shot):
7777
return False
7878

7979

80+
def is_split_stable(shot):
81+
IC = sp.shot_params[shot]['ICspeed']
82+
IR = sp.shot_params[shot]['IRspeed']
83+
OR = sp.shot_params[shot]['ORspeed']
84+
OC = sp.shot_params[shot]['OCspeed']
85+
if OC == OR and IR == 0 and IC == 0 and OC != 0:
86+
return True
87+
return False
88+
89+
8090
def is_ekman(shot):
8191
IC = sp.shot_params[shot]['ICspeed']
8292
IR = sp.shot_params[shot]['IRspeed']

0 commit comments

Comments
 (0)