From 5c8d6fbb5cbbb8b809fe113178f1898b8b9d7bc4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9A=D0=BE=D0=BF?=
 =?UTF-8?q?=D1=8B=D0=BB=D0=BE=D0=B2?= <nekopylov@edu.hse.ru>
Date: Sun, 18 Dec 2022 23:20:23 +0500
Subject: [PATCH] Deleted folder "kopylov" and changes meas zubarev

---
 .../{kopylov/invertor.py => invertor_kopylov_calculate.py} | 0
 SimulateExample/exponenta/kopylov/config.py                | 7 -------
 SimulateExample/exponenta/kopylov/main.py                  | 7 -------
 SimulateExample/exponenta/zubarev_square_calculate.py      | 6 +++---
 4 files changed, 3 insertions(+), 17 deletions(-)
 rename SimulateExample/exponenta/{kopylov/invertor.py => invertor_kopylov_calculate.py} (100%)
 delete mode 100644 SimulateExample/exponenta/kopylov/config.py
 delete mode 100644 SimulateExample/exponenta/kopylov/main.py

diff --git a/SimulateExample/exponenta/kopylov/invertor.py b/SimulateExample/exponenta/invertor_kopylov_calculate.py
similarity index 100%
rename from SimulateExample/exponenta/kopylov/invertor.py
rename to SimulateExample/exponenta/invertor_kopylov_calculate.py
diff --git a/SimulateExample/exponenta/kopylov/config.py b/SimulateExample/exponenta/kopylov/config.py
deleted file mode 100644
index 22ea9ae..0000000
--- a/SimulateExample/exponenta/kopylov/config.py
+++ /dev/null
@@ -1,7 +0,0 @@
-class Config:
-    def __init__(self):
-        self.user_name = "imitator_user"
-        self.password = "imitator_user"
-        self.db = "imitator"
-        self.measurement = "data"
-        self.url = "http://vps.drplatform.ru:8086"
diff --git a/SimulateExample/exponenta/kopylov/main.py b/SimulateExample/exponenta/kopylov/main.py
deleted file mode 100644
index 60e16b6..0000000
--- a/SimulateExample/exponenta/kopylov/main.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from invertor import invertor
-
-if __name__ == '__main__':
-    invertor = invertor()
-    invertor.write("kopylov_final")
-    invertor.read("kopylov_final")
-    invertor.read_write("kopylov_final")
diff --git a/SimulateExample/exponenta/zubarev_square_calculate.py b/SimulateExample/exponenta/zubarev_square_calculate.py
index 89889a7..01574e0 100644
--- a/SimulateExample/exponenta/zubarev_square_calculate.py
+++ b/SimulateExample/exponenta/zubarev_square_calculate.py
@@ -36,7 +36,7 @@ class Square:
                     value = record.get_value() ** 2
                 else:
                     value = record.get_value() ** 2
-                _point = Point("Zubarev") \
+                _point = Point("Calculate") \
                     .tag("signal", signal) \
                     .field(record.get_field(), value) \
                     .time(record.get_time())
@@ -44,5 +44,5 @@ class Square:
                 print(f'#{index}: {_point}')
 
         write_api = self.client.write_api(write_options=SYNCHRONOUS)
-        write_api.write(bucket=self.database, org=self.username, record=_points)
-
+        write_api.write(bucket=self.database,
+                        org=self.username, record=_points)
-- 
GitLab