Compare commits
No commits in common. "0dbd1efe91337253ed9a48eb1d09ebd45906223d" and "24b1d0fdcb5df92b5caa81f298f2325fcb456744" have entirely different histories.
0dbd1efe91
...
24b1d0fdcb
2 changed files with 4 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1 @@
|
|||
data/
|
||||
plots/
|
||||
|
|
|
|||
20
att_eval.py
20
att_eval.py
|
|
@ -72,7 +72,7 @@ class ads:
|
|||
data = np.delete(data, 0, 0) # deletes the zeroes line
|
||||
return data
|
||||
|
||||
def plot(self, show: bool = True, save: bool = False) -> None:
|
||||
def plot(self) -> None:
|
||||
dataarray = self.read_file()
|
||||
plt.rcParams.update({'figure.autolayout': True})
|
||||
x = []
|
||||
|
|
@ -95,21 +95,9 @@ class ads:
|
|||
ax2.legend()
|
||||
ax1.grid()
|
||||
ax2.grid()
|
||||
plt.title(f"{self.filename}.png")
|
||||
ax1.set_ylabel("Measured magnetic field in Gs")
|
||||
ax2.set_ylabel("Measured acceleration in $g$")
|
||||
ax2.set_xlabel("Time in YYYY-MM-DD HH:MM:SS")
|
||||
if save:
|
||||
plt.savefig(fr"C:/Users/nicol/OneDrive/Dokumente/Python Scripts/ADS/plots/{self.filename}.png", format="png")
|
||||
if show:
|
||||
plt.show()
|
||||
plt.show()
|
||||
|
||||
|
||||
if __name__ == "__main__" :
|
||||
# filenames on windows may not have a colon (:)
|
||||
|
||||
#calibration27mar = ads(r"C:/Users/nicol/OneDrive/Dokumente/Python Scripts/ADS/data/junior/2025-03-27T11-21-07Z.EI")
|
||||
#calibration27mar.plot()
|
||||
|
||||
flight01apr = ads(r'C:/Users/nicol/OneDrive/Dokumente/Python Scripts/ADS/data/junior/2025-04-01T07_32_37Z.EI')
|
||||
flight01apr.plot()
|
||||
instance = ads(r"C:/Users/nicol/OneDrive/Dokumente/Python Scripts/ADS/data/junior/2025-03-27T11-21-07Z.EI")
|
||||
instance.plot()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue