diff --git a/hp4155/.ipynb_checkpoints/common_used_functionalities-checkpoint.py b/hp4155/.ipynb_checkpoints/common_used_functionalities-checkpoint.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/hp4155/.ipynb_checkpoints/tests-checkpoint.ipynb b/hp4155/.ipynb_checkpoints/tests-checkpoint.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..363fcab7ed6e9634e198cf5555ceb88932c9a245 --- /dev/null +++ b/hp4155/.ipynb_checkpoints/tests-checkpoint.ipynb @@ -0,0 +1,6 @@ +{ + "cells": [], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/hp4155/common_used_functionalities.py b/hp4155/common_used_functionalities.py new file mode 100644 index 0000000000000000000000000000000000000000..79a0fb813aab8124e867196fb588854853196a29 --- /dev/null +++ b/hp4155/common_used_functionalities.py @@ -0,0 +1,11 @@ +import module +import matplotlib.pyplot as plt +import pandas as pd +from datetime import datetime +import os +from sklearn.linear_model import LinearRegression +import sys +import numpy as np +from IPython.display import display, clear_output + + diff --git a/hp4155/measurements.py b/hp4155/measurements.py index 4863b041cd1bdd99c96a4ffddb49d5bd38dd49d2..0f7c0c090640b128878ed103061495296724d943 100644 --- a/hp4155/measurements.py +++ b/hp4155/measurements.py @@ -333,3 +333,5 @@ def tlm_final(innen=0,distances=(5,10,15,25,45),field_name ='M00',start=-50*10** break else: sys.exit() + +def tlm(innen=0,distances=(5,10,15,25,45),field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3),comp=10,time='MED',path=) \ No newline at end of file diff --git a/hp4155/tests.ipynb b/hp4155/tests.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..b49ac25424b5019908d6c154c845885efe88754c --- /dev/null +++ b/hp4155/tests.ipynb @@ -0,0 +1,85 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "ba9b7aad-ea9e-4b0f-ac15-1dea9b52486c", + "metadata": {}, + "outputs": [], + "source": [ + "#import os\n", + "from pathlib import Path" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "2f35d034-8f0f-4a56-a885-ae07325b674c", + "metadata": {}, + "outputs": [ + { + "ename": "AttributeError", + "evalue": "'str' object has no attribute 'append'", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m/tmp/ipykernel_7786/1593528831.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mpath\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m\"\\\\FILESERVER\\public\\Datentransfer\\Asonitis, Alexandros\\results\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mpath\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", + "\u001b[0;31mAttributeError\u001b[0m: 'str' object has no attribute 'append'" + ] + } + ], + "source": [ + "path=\"\\\\FILESERVER\\public\\Datentransfer\\Asonitis, Alexandros\\results\"\n" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "f6d6ec6c-1f86-4767-92ec-f22902300d01", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "esultsERVER\\public\\Datentransfer\\Asonitis, Alexandros\n" + ] + } + ], + "source": [ + "path=Path(path)\n", + "print(path)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "3f4eaab5-d58a-4a91-bd22-f03043dd4c5c", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.7" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}