-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
51 lines (47 loc) · 1.38 KB
/
test.py
File metadata and controls
51 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 7 15:09:37 2021
@author: telkyd
"""
import streamlit as st
import pandas as pd
#import os
#import time
#import sys
##import math
#import numpy as np
#import pandas as pd
#import matplotlib.pyplot as plt
#import matplotlib.style
#import matplotlib as mpl
#import matplotlib.backends.backend_pdf
#from matplotlib.backends.backend_pdf import PdfPages
#from matplotlib.patches import Rectangle, Polygon
#from matplotlib.font_manager import FontProperties
#from os import path
#
#import streamlit as st
#from pylab import *
#st.set_option('deprecation.showPyplotGlobalUse', False)
#import base64
#from fpdf import FPDF
#from tempfile import NamedTemporaryFile
st.title("HELLO!")
antall_lag=st.slider("Velg antall lag",1,10)
lag=[]
phi=[]
Tyngdetetthet=[]
effektiv_tyngdetetthet=[]
kote_topp=[]
c=[]
phi=[]
for i in range(antall_lag):
cols=st.beta_columns(6)
lag.append(cols[0].text_input("Lagnavn {}".format(i)))
phi.append(cols[1].text_input("phi {}".format(i)))
c.append(cols[2].text_input("Kohesjon {}".format(i)))
Tyngdetetthet.append(cols[3].text_input("Tyngdetetthet {}".format(i)))
effektiv_tyngdetetthet.append(cols[4].text_input("Eff tyngdetetthet {}".format(i)))
kote_topp.append(cols[5].text_input("Kote topp lag {}".format(i)))
#lagre=st.checkbox("Huke av for å lagre som pdf på valgt sti")
calculate=st.button("Beregn")