Pythonfiles

This commit is contained in:
2025-12-29 18:09:12 +01:00
parent ae38545212
commit 86bfd54928
8 changed files with 1312 additions and 82 deletions

View File

@@ -4,7 +4,7 @@
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.14 (Masterprojekt)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.14" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal" created-in="PY-252.28238.29">
<component name="dataSourceStorageLocal" created-in="PY-252.27397.106">
<data-source name="Campusnetz.db" uuid="c385b2f5-c801-4154-bc11-62182a8396b3">
<database-info product="SQLite" version="3.45.1" jdbc-version="4.2" driver-name="SQLite JDBC" driver-version="3.45.1.0" dbms="SQLITE" exact-version="3.45.1" exact-driver-version="3.45">
<identifier-quote-string>&quot;</identifier-quote-string>

2
.idea/misc.xml generated
View File

@@ -3,5 +3,5 @@
<component name="Black">
<option name="sdkName" value="Python 3.14" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.14 (Masterprojekt)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.14" project-jdk-type="Python SDK" />
</project>

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -2,6 +2,7 @@ from dataclasses import dataclass
from typing import Sequence, List, Dict
import sympy as sp
import numpy as np
import math
from decimal import Decimal
import matplotlib.pyplot as plt
@@ -14,8 +15,16 @@ class Genauigkeitsmaße:
@staticmethod
def s0apost(v, P, r):
vv = (v.T * P * v)[0, 0]
s0apost = (Decimal(str(vv)) / Decimal(r)) ** Decimal("0.5")
return s0apost
vv = float(vv) # Sympy -> float
if r <= 0:
raise ValueError(f"Redundanz r muss > 0 sein, ist {r}.")
if not math.isfinite(vv):
raise ValueError(f"vv ist nicht endlich (NaN/Inf). vv={vv}")
if vv < 0:
raise ValueError(f"vv ist negativ. vv={vv}")
return math.sqrt(vv / float(r))

View File

@@ -81,8 +81,8 @@ def ausgleichung_lokal(
dl: sp.Matrix,
Q_ll: sp.Matrix,
x0: sp.Matrix,
idx_X, idx_Y, idx_Z,
aktive_unbekannte_indices,
liste_punktnummern,
auswahl,
mit_massstab: bool = True,
):
# 1) Gewichtsmatrix P

File diff suppressed because one or more lines are too long