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$"> <content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" /> <excludeFolder url="file://$MODULE_DIR$/.venv" />
</content> </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" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <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"> <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"> <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> <identifier-quote-string>&quot;</identifier-quote-string>

2
.idea/misc.xml generated
View File

@@ -3,5 +3,5 @@
<component name="Black"> <component name="Black">
<option name="sdkName" value="Python 3.14" /> <option name="sdkName" value="Python 3.14" />
</component> </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> </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 from typing import Sequence, List, Dict
import sympy as sp import sympy as sp
import numpy as np import numpy as np
import math
from decimal import Decimal from decimal import Decimal
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
@@ -14,8 +15,16 @@ class Genauigkeitsmaße:
@staticmethod @staticmethod
def s0apost(v, P, r): def s0apost(v, P, r):
vv = (v.T * P * v)[0, 0] vv = (v.T * P * v)[0, 0]
s0apost = (Decimal(str(vv)) / Decimal(r)) ** Decimal("0.5") vv = float(vv) # Sympy -> float
return s0apost
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, dl: sp.Matrix,
Q_ll: sp.Matrix, Q_ll: sp.Matrix,
x0: sp.Matrix, x0: sp.Matrix,
idx_X, idx_Y, idx_Z, liste_punktnummern,
aktive_unbekannte_indices, auswahl,
mit_massstab: bool = True, mit_massstab: bool = True,
): ):
# 1) Gewichtsmatrix P # 1) Gewichtsmatrix P

File diff suppressed because one or more lines are too long