barsukov 0.0.4__tar.gz → 1.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of barsukov might be problematic. Click here for more details.
- barsukov-1.0.8/MANIFEST.in +3 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/PKG-INFO +47 -48
- {barsukov-0.0.4 → barsukov-1.0.8}/pyproject.toml +5 -7
- {barsukov-0.0.4 → barsukov-1.0.8}/setup.cfg +4 -4
- barsukov-1.0.8/src/2025-01-24_No Stn_Anon_No Sample_No Description/mw.dill +1 -0
- barsukov-1.0.8/src/2025-01-24_No Stn_Anon_No Sample_No Description/mw.pkl +1 -0
- barsukov-1.0.8/src/Untitled.ipynb +331 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/__init__.py +15 -14
- barsukov-1.0.8/src/barsukov/data/__init__.py +1 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/data/fft.py +87 -87
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/exp/exp_utils.py +136 -119
- barsukov-1.0.8/src/barsukov/exp/mwHP.py +191 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/logger.py +126 -122
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/obj2file.py +105 -107
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/script.py +96 -82
- barsukov-1.0.8/src/barsukov/testpickle.py +38 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/time.py +16 -16
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov.egg-info/PKG-INFO +47 -48
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov.egg-info/SOURCES.txt +11 -0
- barsukov-1.0.8/src/barsukov.egg-info/requires.txt +3 -0
- barsukov-1.0.8/src/barsukov.egg-info/top_level.txt +2 -0
- barsukov-1.0.8/src/mw.pickle +1 -0
- barsukov-1.0.8/src/mwnew.pickle +1 -0
- barsukov-1.0.8/src/randomobject.pickle +0 -0
- barsukov-1.0.8/src/test.pickle +1 -0
- barsukov-1.0.8/src/testing.pickle +1 -0
- barsukov-1.0.8/src/testsave.pickle +1 -0
- barsukov-0.0.4/src/barsukov/data/__init__.py +0 -0
- barsukov-0.0.4/src/barsukov/exp/mwHP.py +0 -357
- barsukov-0.0.4/src/barsukov.egg-info/requires.txt +0 -3
- barsukov-0.0.4/src/barsukov.egg-info/top_level.txt +0 -1
- {barsukov-0.0.4 → barsukov-1.0.8}/README.md +0 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov/exp/__init__.py +0 -0
- {barsukov-0.0.4 → barsukov-1.0.8}/src/barsukov.egg-info/dependency_links.txt +0 -0
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: barsukov
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Experiment Automation Package
|
|
5
|
-
Author-email: Igor Barsukov <igorb@ucr.edu>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Classifier:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Requires-Dist:
|
|
13
|
-
Requires-Dist:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[MIT](https://choosealicense.com/licenses/mit/)
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: barsukov
|
|
3
|
+
Version: 1.0.8
|
|
4
|
+
Summary: Experiment Automation Package
|
|
5
|
+
Author-email: Igor Barsukov <igorb@ucr.edu>, Steven Castaneda <scast206@ucr.edu>
|
|
6
|
+
Project-URL: Homepage, https://barsukov.ucr.edu
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: pytz>=2014.10
|
|
12
|
+
Requires-Dist: numpy>=1.0.0
|
|
13
|
+
Requires-Dist: scipy>=0.9.0
|
|
14
|
+
|
|
15
|
+
# Barsukov
|
|
16
|
+
|
|
17
|
+
Barsukov is a Python library for experiment automation.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install barsukov.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install barsukov
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
#
|
|
31
|
+
#
|
|
32
|
+
#
|
|
33
|
+
#
|
|
34
|
+
#
|
|
35
|
+
#
|
|
36
|
+
#
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Contributing
|
|
40
|
+
|
|
41
|
+
-
|
|
42
|
+
-
|
|
43
|
+
-
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools
|
|
2
|
+
requires = ["setuptools"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "barsukov"
|
|
7
|
-
version = "
|
|
7
|
+
version = "1.0.8"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"pytz>=2014.10",
|
|
10
|
-
"numpy>=1.
|
|
11
|
-
"scipy>=
|
|
10
|
+
"numpy>=1.0.0",
|
|
11
|
+
"scipy>=0.9.0",
|
|
12
12
|
]
|
|
13
|
-
requires-python = ">=3.
|
|
13
|
+
requires-python = ">=3.6"
|
|
14
14
|
authors = [
|
|
15
15
|
{ name = "Igor Barsukov", email = "igorb@ucr.edu" },
|
|
16
|
-
]
|
|
17
|
-
maintainers = [
|
|
18
16
|
{ name = "Steven Castaneda", email = "scast206@ucr.edu" },
|
|
19
17
|
]
|
|
20
18
|
description = "Experiment Automation Package"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[egg_info]
|
|
2
|
-
tag_build =
|
|
3
|
-
tag_date = 0
|
|
4
|
-
|
|
1
|
+
[egg_info]
|
|
2
|
+
tag_build =
|
|
3
|
+
tag_date = 0
|
|
4
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "code",
|
|
5
|
+
"execution_count": 1,
|
|
6
|
+
"id": "58d17a4b-53a0-4f7b-8abb-264e293a8963",
|
|
7
|
+
"metadata": {},
|
|
8
|
+
"outputs": [],
|
|
9
|
+
"source": [
|
|
10
|
+
"import os\n",
|
|
11
|
+
"import barsukov as b"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"cell_type": "code",
|
|
16
|
+
"execution_count": 2,
|
|
17
|
+
"id": "1df63f57-c7f9-4d15-99ab-34c63fc97906",
|
|
18
|
+
"metadata": {},
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "stdout",
|
|
22
|
+
"output_type": "stream",
|
|
23
|
+
"text": [
|
|
24
|
+
"2025-01-27_19-08-593 Logging file started.\n",
|
|
25
|
+
"\n",
|
|
26
|
+
"2025-01-27_19-08-593 Logger initialization complete.\n",
|
|
27
|
+
"\n",
|
|
28
|
+
"2025-01-27_19-08-593 Script object initialized. Logger started.\n",
|
|
29
|
+
"\n",
|
|
30
|
+
"2025-01-27_19-08-593 [mwHP 0::8] I see Script but it does not have rm. I am asking Script to initialize visa.ResourceManager and pass it to me.\n",
|
|
31
|
+
"\n",
|
|
32
|
+
"2025-01-27_19-08-593 Script started pyvisa.ResourceManager.\n",
|
|
33
|
+
"\n",
|
|
34
|
+
"2025-01-27_19-08-593 [mwHP 0::8] I am trying to rm.open_resource().\n",
|
|
35
|
+
"\n",
|
|
36
|
+
"2025-01-27_19-08-594 [mwHP 0::8] Initialized: HEWLETT-PACKARD,83752A,3610A01172,REV A.02.00 \n",
|
|
37
|
+
"\n",
|
|
38
|
+
"\n"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"source": [
|
|
43
|
+
"s = b.Script(### Please ALWAYS specify the following:\n",
|
|
44
|
+
" operator='Anon', # ib, Rundong, Sasha, Ameerah, Alex, or AlexH if ambiguous \n",
|
|
45
|
+
" station='No Stn', # qd, ppms, mseppms, data, orange, ...\n",
|
|
46
|
+
" sample='No Sample', # Use sample name from the sample table, e.g. \"cro2410a1\" or \"yig2207\"\n",
|
|
47
|
+
" description='No Description', # Briefly: what are you doing. Sets the folder name.\n",
|
|
48
|
+
" # i.e. 'Testing modulation' or 'fH OOP long average'\n",
|
|
49
|
+
" project_folder = os.getcwd(), # Full path to your project folder. Please follow this convention:\n",
|
|
50
|
+
" # D:/Rundong/Projects/AFM sims/2024-07-06 Autooscillations\n",
|
|
51
|
+
" # Will grab the current directory if not specified.\n",
|
|
52
|
+
"\n",
|
|
53
|
+
" ### Optional:\n",
|
|
54
|
+
" log='both', # This is the default log setting which will be passed to the logger.\n",
|
|
55
|
+
" ### It will be overriden by other objects,\n",
|
|
56
|
+
" ### which in turn will be overriden by methods.\n",
|
|
57
|
+
" ### Choose here and everywhere from screen, file, both, no.\n",
|
|
58
|
+
"\n",
|
|
59
|
+
" ### Usually, it's better not to change these:\n",
|
|
60
|
+
" log_full_folder_path=None,\n",
|
|
61
|
+
" log_full_file_path=None)\n",
|
|
62
|
+
"\n",
|
|
63
|
+
"mw = s.mwHP(gpib=8)"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"cell_type": "code",
|
|
68
|
+
"execution_count": 3,
|
|
69
|
+
"id": "cf49538d-4630-4573-b59d-1cd7ea4c2a68",
|
|
70
|
+
"metadata": {},
|
|
71
|
+
"outputs": [
|
|
72
|
+
{
|
|
73
|
+
"data": {
|
|
74
|
+
"text/plain": [
|
|
75
|
+
"{'operator': 'Anon',\n",
|
|
76
|
+
" 'station': 'No Stn',\n",
|
|
77
|
+
" 'sample': 'No Sample',\n",
|
|
78
|
+
" 'description': 'No Description',\n",
|
|
79
|
+
" 'project_folder': 'C:\\\\Users\\\\bsg1\\\\Documents\\\\Github\\\\barsukov\\\\src',\n",
|
|
80
|
+
" 'rm': <ResourceManager(<IVIVisaLibrary('C:\\\\WINDOWS\\\\system32\\\\visa32.dll')>)>,\n",
|
|
81
|
+
" 'folder_name': '2025-01-27_No Stn_Anon_No Sample_No Description',\n",
|
|
82
|
+
" 'full_folder_path': 'C:\\\\Users\\\\bsg1\\\\Documents\\\\Github\\\\barsukov\\\\src\\\\2025-01-27_No Stn_Anon_No Sample_No Description',\n",
|
|
83
|
+
" 'logger_information': {'full_file_path': 'C:\\\\Users\\\\bsg1\\\\Documents\\\\Github\\\\barsukov\\\\src\\\\log_2025-01-27_19-08-593_Anon_No Description_.txt',\n",
|
|
84
|
+
" 'description': 'Anon_No Description',\n",
|
|
85
|
+
" 'log_mode': 'both',\n",
|
|
86
|
+
" 'full_folder_path': 'C:\\\\Users\\\\bsg1\\\\Documents\\\\Github\\\\barsukov\\\\src',\n",
|
|
87
|
+
" 'file_error': False,\n",
|
|
88
|
+
" 'file': <_io.TextIOWrapper name='C:\\\\Users\\\\bsg1\\\\Documents\\\\Github\\\\barsukov\\\\src\\\\log_2025-01-27_19-08-593_Anon_No Description_.txt' mode='a' encoding='cp1252'>}}"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"execution_count": 3,
|
|
92
|
+
"metadata": {},
|
|
93
|
+
"output_type": "execute_result"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"source": [
|
|
97
|
+
"s.to_dict()"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"cell_type": "code",
|
|
102
|
+
"execution_count": null,
|
|
103
|
+
"id": "1fabae1b-fc67-4e4d-a652-d005a299e6fb",
|
|
104
|
+
"metadata": {},
|
|
105
|
+
"outputs": [],
|
|
106
|
+
"source": []
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"cell_type": "code",
|
|
110
|
+
"execution_count": null,
|
|
111
|
+
"id": "9b0a9b2c-0c83-4800-9b4e-962423ef7e00",
|
|
112
|
+
"metadata": {},
|
|
113
|
+
"outputs": [],
|
|
114
|
+
"source": []
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"cell_type": "code",
|
|
118
|
+
"execution_count": null,
|
|
119
|
+
"id": "7d588b14-de1c-4379-ab99-74edbbe9b29f",
|
|
120
|
+
"metadata": {},
|
|
121
|
+
"outputs": [],
|
|
122
|
+
"source": []
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"cell_type": "code",
|
|
126
|
+
"execution_count": 8,
|
|
127
|
+
"id": "da72ced5-41af-4903-9921-0e2804ba5670",
|
|
128
|
+
"metadata": {},
|
|
129
|
+
"outputs": [
|
|
130
|
+
{
|
|
131
|
+
"name": "stdout",
|
|
132
|
+
"output_type": "stream",
|
|
133
|
+
"text": [
|
|
134
|
+
"2025-01-27_18-47-293 Logging file started.\n",
|
|
135
|
+
"\n",
|
|
136
|
+
"2025-01-27_18-47-293 Logger initialization complete.\n",
|
|
137
|
+
"\n"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"source": [
|
|
142
|
+
"test = b.Logger(description='testingtestingyayayayay', # Will be passed by Script. If not, write a brief description!\n",
|
|
143
|
+
" full_folder_path=os.getcwd(), # Will be passed by Script. If not, specify!\n",
|
|
144
|
+
" full_file_path=None, # Specify only if you want to log into an already existing file.\n",
|
|
145
|
+
" log='both', # Logger default will be passed by Script. If not, you may choose to change.\n",
|
|
146
|
+
" start_file=True)"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"cell_type": "code",
|
|
151
|
+
"execution_count": 9,
|
|
152
|
+
"id": "886cd046-c9e4-4f88-b9eb-33ee4386d187",
|
|
153
|
+
"metadata": {},
|
|
154
|
+
"outputs": [
|
|
155
|
+
{
|
|
156
|
+
"name": "stdout",
|
|
157
|
+
"output_type": "stream",
|
|
158
|
+
"text": [
|
|
159
|
+
"{obj} object successfully saved.\n"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"source": [
|
|
164
|
+
"b.save_object(test, 'randomobject.pickle', update=True)"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"cell_type": "code",
|
|
169
|
+
"execution_count": 10,
|
|
170
|
+
"id": "270afc62-fea2-4b60-8f9a-6baf89aa1059",
|
|
171
|
+
"metadata": {},
|
|
172
|
+
"outputs": [
|
|
173
|
+
{
|
|
174
|
+
"name": "stdout",
|
|
175
|
+
"output_type": "stream",
|
|
176
|
+
"text": [
|
|
177
|
+
"randomobject.pickle object successfully loaded.\n"
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"source": [
|
|
182
|
+
"newtest = b.load_object(obj_file='randomobject.pickle')"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"cell_type": "code",
|
|
187
|
+
"execution_count": 12,
|
|
188
|
+
"id": "a73a1485-c167-4462-8ed8-0cd58c7ea635",
|
|
189
|
+
"metadata": {},
|
|
190
|
+
"outputs": [
|
|
191
|
+
{
|
|
192
|
+
"name": "stdout",
|
|
193
|
+
"output_type": "stream",
|
|
194
|
+
"text": [
|
|
195
|
+
"2025-01-27_18-47-598 [mwHP 0::8] Visa ResourceManager and Script have not been passed to me. I will attempt to initialize visa myself.\n",
|
|
196
|
+
"\n",
|
|
197
|
+
"2025-01-27_18-47-599 [mwHP 0::8] I just set my self.rm = visa.ResourceManager.\n",
|
|
198
|
+
"\n",
|
|
199
|
+
"2025-01-27_18-47-599 [mwHP 0::8] I am trying to rm.open_resource().\n",
|
|
200
|
+
"\n",
|
|
201
|
+
"2025-01-27_18-48-000 [mwHP 0::8] Initialized: HEWLETT-PACKARD,83752A,3610A01172,REV A.02.00 \n",
|
|
202
|
+
"\n",
|
|
203
|
+
"\n"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"source": [
|
|
208
|
+
"mw = b.mwHP(gpib=8, logger=newtest)"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"cell_type": "code",
|
|
213
|
+
"execution_count": 13,
|
|
214
|
+
"id": "053204f5-a69f-40f5-837d-4c87fe7bf5b5",
|
|
215
|
+
"metadata": {},
|
|
216
|
+
"outputs": [
|
|
217
|
+
{
|
|
218
|
+
"name": "stdout",
|
|
219
|
+
"output_type": "stream",
|
|
220
|
+
"text": [
|
|
221
|
+
"11 11\n",
|
|
222
|
+
"2025-01-27_18-48-087 [mwHP 0::8] Writing f as 11.\n",
|
|
223
|
+
"\n"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"data": {
|
|
228
|
+
"text/plain": [
|
|
229
|
+
"11"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"execution_count": 13,
|
|
233
|
+
"metadata": {},
|
|
234
|
+
"output_type": "execute_result"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"source": [
|
|
238
|
+
"mw.f(11)"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"cell_type": "code",
|
|
243
|
+
"execution_count": 14,
|
|
244
|
+
"id": "4222df7b-d461-4540-8550-92e2aeba54b6",
|
|
245
|
+
"metadata": {},
|
|
246
|
+
"outputs": [
|
|
247
|
+
{
|
|
248
|
+
"name": "stdout",
|
|
249
|
+
"output_type": "stream",
|
|
250
|
+
"text": [
|
|
251
|
+
"{obj} object successfully saved.\n"
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"source": [
|
|
256
|
+
"b.save_object(test, 'randomobject.pickle', update=True)"
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"cell_type": "code",
|
|
261
|
+
"execution_count": 15,
|
|
262
|
+
"id": "e023a8f3-6df4-4c12-90b0-6d11f6883978",
|
|
263
|
+
"metadata": {},
|
|
264
|
+
"outputs": [
|
|
265
|
+
{
|
|
266
|
+
"name": "stdout",
|
|
267
|
+
"output_type": "stream",
|
|
268
|
+
"text": [
|
|
269
|
+
"randomobject.pickle object successfully loaded.\n",
|
|
270
|
+
"2025-01-27_18-49-236 [mwHP 0::8] Visa ResourceManager and Script have not been passed to me. I will attempt to initialize visa myself.\n",
|
|
271
|
+
"\n",
|
|
272
|
+
"2025-01-27_18-49-236 [mwHP 0::8] I just set my self.rm = visa.ResourceManager.\n",
|
|
273
|
+
"\n",
|
|
274
|
+
"2025-01-27_18-49-236 [mwHP 0::8] I am trying to rm.open_resource().\n",
|
|
275
|
+
"\n",
|
|
276
|
+
"2025-01-27_18-49-236 [mwHP 0::8] Initialized: HEWLETT-PACKARD,83752A,3610A01172,REV A.02.00 \n",
|
|
277
|
+
"\n",
|
|
278
|
+
"\n",
|
|
279
|
+
"15 15\n",
|
|
280
|
+
"2025-01-27_18-49-236 [mwHP 0::8] Writing f as 15.\n",
|
|
281
|
+
"\n"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"data": {
|
|
286
|
+
"text/plain": [
|
|
287
|
+
"15"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"execution_count": 15,
|
|
291
|
+
"metadata": {},
|
|
292
|
+
"output_type": "execute_result"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"source": [
|
|
296
|
+
"newtest = b.load_object(obj_file='randomobject.pickle')\n",
|
|
297
|
+
"mw = b.mwHP(gpib=8, logger=newtest)\n",
|
|
298
|
+
"mw.f(15)"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"cell_type": "code",
|
|
303
|
+
"execution_count": null,
|
|
304
|
+
"id": "2f3332ee-aa7f-489f-a787-43ddbc433ebd",
|
|
305
|
+
"metadata": {},
|
|
306
|
+
"outputs": [],
|
|
307
|
+
"source": []
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"metadata": {
|
|
311
|
+
"kernelspec": {
|
|
312
|
+
"display_name": "Python 3 (ipykernel)",
|
|
313
|
+
"language": "python",
|
|
314
|
+
"name": "python3"
|
|
315
|
+
},
|
|
316
|
+
"language_info": {
|
|
317
|
+
"codemirror_mode": {
|
|
318
|
+
"name": "ipython",
|
|
319
|
+
"version": 3
|
|
320
|
+
},
|
|
321
|
+
"file_extension": ".py",
|
|
322
|
+
"mimetype": "text/x-python",
|
|
323
|
+
"name": "python",
|
|
324
|
+
"nbconvert_exporter": "python",
|
|
325
|
+
"pygments_lexer": "ipython3",
|
|
326
|
+
"version": "3.11.1"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"nbformat": 4,
|
|
330
|
+
"nbformat_minor": 5
|
|
331
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
# Modules:
|
|
2
|
-
from . import time
|
|
3
|
-
from . import data
|
|
4
|
-
|
|
5
|
-
# Objects/Functions:
|
|
6
|
-
from .script import Script
|
|
7
|
-
from .logger import Logger
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
# Modules:
|
|
2
|
+
from . import time
|
|
3
|
+
from . import data
|
|
4
|
+
|
|
5
|
+
# Objects/Functions:
|
|
6
|
+
from .script import Script
|
|
7
|
+
from .logger import Logger
|
|
8
|
+
from .testpickle import *
|
|
9
|
+
|
|
10
|
+
# Equipment Objects:
|
|
11
|
+
from .exp.mwHP import mwHP
|
|
12
|
+
|
|
13
|
+
__all__ = ["time", "formula", "data", "Script", "Logger", "mwHP"]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .fft import *
|