Compare commits

..

No commits in common. "develop" and "master" have entirely different histories.

7 changed files with 1 additions and 194 deletions

View File

@ -5,8 +5,6 @@ ___
## Installation
`pip install plotly`
`pip install pandas`
`pip install scipy`
## Dokumentation

View File

@ -1,36 +0,0 @@
# Kommentar
# Strings
bla = 'das ist ein schöner Schdring\n \
nächste Zeile'
print(bla)
print(bla[2:10]) # Substring
print(bla[:3] + bla[-6:]) # erstes und letztes Wort
# List
werte = [ 3, 6, 23, 34, 56.3, 35.6]
print(werte)
werte.append(23) # returns none
print(werte)
werte[2] = 4 # mutable, with index
print(werte)
# Fibonacci
a, b = 0, 1 # multiple assignment
while a < 10:
print(a, end=':') # Schleifenbody ist eingerückt
a, b = b, a + b
print("\n -- Primzahlensuche:")
# Primzahlensuche mit for .. else!
for n in range(2, 10):
for x in range(2, n):
if n % x == 0:
print(n, "equals", x, "*", n//x)
break
else:
# keinen Faktor gefunden (innere Schleife)
print(n, "ist Primzahl")

View File

@ -1,34 +0,0 @@
point = (3, 0)
match point:
case (0,0):
print("Origin")
case (0, y):
print(f"Y={y}")
case (x, 0):
print(f"X={x}")
case (x, y):
print(f"X={x}, Y={y}")
case _:
raise ValueError("no point")
def fib(n):
"""Print a fibonacci series up to n.""" # this is the doc string
result = []
a, b = 0, 1
while a < n:
result.append(a)
a, b = b, a + b
return result
print(fib(2000))
def Collector(a, L=[]): # L wird hier nur einmal initialisiert!
L.append(a)
return L
print(Collector(2))
print(Collector(58))
print(Collector("Gurkensalat"))

View File

@ -1,31 +0,0 @@
from contextlib import nullcontext
import imp
import os
from venv import create
from werkzeug.test import create_environ
from werkzeug.serving import run_simple
from werkzeug.urls import url_parse
from werkzeug.wrappers import Request, Response
from werkzeug.routing import Map, Rule
from werkzeug.exceptions import HTTPException, NotFound
from werkzeug.middleware.shared_data import SharedDataMiddleware
from werkzeug.utils import redirect
#environ = create_environ('/bla', 'http://localhost:8999')
#environ['PATH_INFO']
class Device(object):
def __init__(self, config):
pass
def dispatch_request(self, request):
return Response('got it')
app = Device(nullcontext)
run_simple('heupferd', 8999, app, use_reloader=True)

View File

@ -1,11 +0,0 @@
#https://www.geeksforgeeks.org/how-to-find-available-wifi-networks-using-python/
import subprocess
devices = subprocess.check_output(['netsh', 'wlan', 'show', 'network'])
devices = devices.decode('ascii')
devices = devices.replace("\r", "")
print(devices)

File diff suppressed because one or more lines are too long

View File

@ -3,9 +3,6 @@ from lib2to3.pgen2.pgen import DFAState
import plotly.express as px
import plotly.io as pio
import plotly.graph_objects as go
import numpy
import pandas
from scipy import signal
filename = 'example_data/TachymeterTable_103.csv'
@ -97,12 +94,7 @@ tachies = [Tachymeter(i, data[0]) for i in data[1:]]
# pio.show(fig)
# fig = px.line(x=t.index, y=t.SOG, title="SOG")
fig = go.Figure()
fig.add_trace(go.Scatter(x=t.index, y=t.SOG, mode='lines', name='SOG'))
fig.add_trace(go.Scatter(x=t.index, y=signal.savgol_filter(t.SOG, 53, 3), mode='lines', name='Smooth SOG'))
fig.write_html("smooth.html")
fig = px.line(x=t.index, y=t.SOG, title="SOG")
fig.show()
#df = dict( {