Eduard Kharakhashyan commited on
Commit
5e4e3b1
·
1 Parent(s): b881031

condensate expander

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -42,7 +42,6 @@ SG_LIST = [UD,
42
  "Gas components",
43
  CONDENSATE]
44
  SG_UD, SG_GC, SG_CON = SG_LIST
45
- # Dropdown 1 with options A and B
46
  sg_source = st.selectbox("sg source", SG_LIST)
47
 
48
  if sg_source == UD:
@@ -52,10 +51,11 @@ else:
52
  st.text_input("sg", value=ss[sg_k], key="input_field", disabled=True, help="Calculated")
53
 
54
  if sg_source == SG_CON:
55
- st.text_input("surface avg gas sg", value=0.74, key="avg sg")
56
- ss[lg_k] = float(st.text_input("liquid gravity", value=0.8, key="lg_key"))
57
- st.text_input("GOR", value=16630, key="gor")
58
- st.text_input("Recombination factor", value=ss[recf_k], key="recf_key", disabled=True, help="Calculated")
 
59
 
60
 
61
  def text_for_gc(col, gc):
 
42
  "Gas components",
43
  CONDENSATE]
44
  SG_UD, SG_GC, SG_CON = SG_LIST
 
45
  sg_source = st.selectbox("sg source", SG_LIST)
46
 
47
  if sg_source == UD:
 
51
  st.text_input("sg", value=ss[sg_k], key="input_field", disabled=True, help="Calculated")
52
 
53
  if sg_source == SG_CON:
54
+ with st.expander(label="Condensate", expanded=True):
55
+ st.text_input("surface avg gas sg", value=0.74, key="avg sg")
56
+ ss[lg_k] = float(st.text_input("liquid gravity", value=0.8, key="lg_key"))
57
+ st.text_input("GOR", value=16630, key="gor")
58
+ st.text_input("Recombination factor", value=ss[recf_k], key="recf_key", disabled=True, help="Calculated")
59
 
60
 
61
  def text_for_gc(col, gc):