From 1dd8aba068b6727498460dbc9746cea8ad3ecebd Mon Sep 17 00:00:00 2001
From: Ute Becker <ute.becker@ptb.de>
Date: Tue, 9 Apr 2024 11:37:52 +0000
Subject: [PATCH] Delete testplot.py

---
 testplot.py | 68 -----------------------------------------------------
 1 file changed, 68 deletions(-)
 delete mode 100644 testplot.py

diff --git a/testplot.py b/testplot.py
deleted file mode 100644
index 362af10..0000000
--- a/testplot.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-Created on Thu Feb 22 11:21:17 2024
-
-@author: becker07
-"""
-
-from matplotlib import pyplot as plt
-import pathlib
-from statistics import mean
-from datetime import datetime
-from IPython.display import Markdown as md
-import numpy as np
-import re
-import math
-import statistics
-import pandas as pd
-import json
-import couchdb 
-import PyPDF2
-
-
-couch = couchdb.Server('http://a73434.berlin.ptb.de:5984')
-db = couch['vl_db'] # existing
-#json_file = "cal-" + year + "-fm1-" + "-" + cal_cert + "_" + no
-
-
-json_file = "cal-2024-fm1-kk-75565_0001"
-print(json_file)
-
-
-doc = db.get(json_file) 
-
-
-
-
-I_Scan_Offs=np.array(doc["Calibration"]["Measurement"]["AuxValues"]["ScanQMS"][2]["Value"])
-I_Scan_Offs=np.float64(I_Scan_Offs[2:-2])
-I_Scan=np.array(doc["Calibration"]["Measurement"]["AuxValues"]["ScanQMS"][1]["Value"])
-I_Scan=np.float64(I_Scan[2:-2])
-Mass_Scan=np.array(doc["Calibration"]["Measurement"]["AuxValues"]["ScanQMS"][0]["Value"])
-Mass_Scan=Mass_Scan[2:-2]
-
-for i in range(len(Mass_Scan)):
-    Mass_Scan[i] = re.sub(r"Mass ", "", Mass_Scan[i]).strip()
-   
-    
-Mass_Scan=np.float64(Mass_Scan)
-
-fig=plt.figure()
-ax=fig.add_axes([0,0,4,2])
-ax.set_xlabel('Masse')
-ax.set_ylabel('QMS-Signal')
-ax.set_yscale('log')
-#plt.plot(1010,4.65e-10, 'bo')
-plt.plot(Mass_Scan,I_Scan, label=r'Flow')
-plt.plot(Mass_Scan,I_Scan_Offs,label=r'Offset' )
-plt.legend()
-
-
-plt.grid()
-
-fig.savefig("Scan.pdf", bbox_inches='tight')
-
-content=pathlib.Path('Scan.pdf').read_bytes() 
-
-db.put_attachment(doc, content, "Scan.pdf" , content_type="'application/pdf")
-
-- 
GitLab