import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V64" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Bestimmung der Schwächungskoeffizienten") gpdf.addSpacer() gpdf.addText("Messzeit: t = 20 s") underground = str(np.load(workingDir + "DataV64Nbg.npy")) gpdf.addText("Untergrundmessung: Pulszahl = {0}".format(underground)) gpdf.addSpacer() gpdf.addText("Aluminium:") header = [["Absorberdicke [mm]", "Pulszahl"]] data1 = np.load(workingDir + "DataV64Alu.npy").T gpdf.addTable(header, data1) gpdf.addSpacer() gpdf.addText("Kupfer") data2 = np.load(workingDir + "DataV64Cu.npy").T gpdf.addTable(header, data2)
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V14" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() m_cu, m_ges, T_1, T_2, d = np.load(workingDir + "DataV14Part1.npy") gpdf.addText("Masse des leeren Kalorimeters: {:.1f} g".format(m_cu)) gpdf.addSpacer() gpdf.addText("Masse des gefüllten Kalorimeters: {:.1f} g".format(m_ges)) gpdf.addSpacer() gpdf.addText("Temperatur vor der Erwärmung: {:.1f} °C".format(T_1)) gpdf.addSpacer() gpdf.addText("Temperatur nach der Erwärmung: {:.1f} °C".format(T_2)) gpdf.addSpacer() gpdf.addText("Durchmesser des Kalorimeters: {:.1f} mm".format(d)) gpdf.addSpacer() gpdf.addPagebreak()
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V42" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Teil 1: Brechungsindex") header1 = [["α [Grad]", "β [Grad]"]] data1 = np.load(workingDir + "DataV42Part1.npy").T gpdf.addTable(header1, data1) gpdf.addSpacer() angleOfTotalReflection = str( np.load(workingDir + "DataV42angleOfTotalReflection.npy")) gpdf.addText("Winkel der Totalreflektion = {0}°".format( angleOfTotalReflection)) gpdf.addSpacer() gpdf.addSpacer() gpdf.addText("Teil 2: Kalibrierung mit Spektrallinien von Helium") header2 = [["Skala", "Wellenlänge [nm]", "Farbe"]] data2 = np.load(workingDir + "DataV42Part2.npy").T gpdf.addTable(header2, data2)
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V2" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Teil 1: Statische Messung") header1 = [["Massen [g]", "Laengen [mm]"]] data1 = np.load(workingDir + "DataV2Part1.npy").T gpdf.addTable(header1, data1) gpdf.addSpacer() gpdf.addText("Teil 2: Dynamische Messung") header2 = [["Massen [g]", "10 Perioden [s]"]] data2 = np.load(workingDir + "DataV2Part2.npy").T gpdf.addTable(header2, data2) gpdf.addPagebreak() gpdf.createPDF(experiment)
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V30" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Teil 3: Bestimmung von e/m") header3 = [["Spannung [V]", "Strom [A]", "Durchmesser [cm]"]] data3 = np.load(workingDir + "DataV30Part1.npy").T gpdf.addTable(header3, data3) gpdf.addPagebreak() gpdf.createPDF(experiment)
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V8" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Temperatur: 20°C") gpdf.addSpacer() gpdf.addText("Teil 1: Quincksches Rohr") gpdf.addText("Lautsprecherfrequenz : 2 KHz") header1 = ["Resonanzlaengen [cm]"] data1 = np.load(workingDir + "DataV8Part1.npy").T gpdf.addTable(header1, data1) gpdf.addSpacer() gpdf.addText("Teil 2: Ultraschall") gpdf.addText("Ultraschallfrequenz: 40.692 KHz") # Show only the last entry (after 10 wavelengths) # gpdf.addText("Abstand zwischen 10 Wellenlaengen : {} mm".format( # np.load(workingDir + "DataV8Part2.npy").T[-1])) header2 = ["Wellenlaengen [mm]"] data2 = np.load(workingDir + "DataV8Part2.npy").T
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V39" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + experiment[1:]) gpdf.addSpacer() gpdf.addText("Teil 1: Kohlepapierstreifen") gpdf.addSpacer() gpdf.addText("Kontaktklemme (-) bei x = 15 cm") gpdf.addText("Kontaktklemme (+) bei x = 35 cm") gpdf.addSpacer() header1 = [["Position x [cm]", "Spannung [V]"]] data1 = np.load(workingDir + "DataV39Part1.npy").T gpdf.addTable(header1, data1) gpdf.addSpacer() gpdf.addSpacer() gpdf.addSpacer() gpdf.addSpacer() gpdf.addSpacer() gpdf.addSpacer() gpdf.addText("Teil 3: EKG-Ableitung") gpdf.addSpacer()
import generatepdf_base as gpdf import numpy as np from get_students import get_students students = get_students() experiment = "V4041" for student in students: workingDir = experiment + "/" + student + "/" gpdf.addText("Versuchsdaten für " + student.replace('_', ' ')) gpdf.addText("Versuch Nummer " + "40") gpdf.addSpacer() gpdf.addText("Teil 1: Sammellinsen") gpdf.addText("Linse 1:") header = [["Bildweite [cm]", "Gegenstandsweite [cm]"]] data11 = np.load(workingDir + "DataV4041Part1_Lens1.npy").T gpdf.addTable(header, data11) gpdf.addText("Linse 2:") data12 = np.load(workingDir + "DataV4041Part1_Lens2.npy").T gpdf.addTable(header, data12) gpdf.addSpacer() gpdf.addText("Teil 2: Linsensystem") gpdf.addText("Linse 1 + Linse 2:") gpdf.addText("Linsenabstand = 2.8 cm") data2 = np.load(workingDir + "DataV4041Part2.npy").T gpdf.addTable(header, [data2]) gpdf.addSpacer()