diff --git a/Mag_Field_Sweep_2025_04_15.py b/Mag_Field_Sweep_2025_04_15.py index 2ddfe69..5a09175 100644 --- a/Mag_Field_Sweep_2025_04_15.py +++ b/Mag_Field_Sweep_2025_04_15.py @@ -1063,6 +1063,7 @@ def sweep_b_angle(instr1:pyvisa.resources.Resource, instr2:pyvisa.resources.Reso # TODO: see later parts of b_field_rotation from line 820 onwards, and see if same logic can be applied here # acquire coordinates along the fixed axis, threading, sweep both supplies till desired value (with lock) # then set event, measure, on with the next iteration, just like in b-field-rotation + cartesian_coords = generate_coord_list_fixed_angle(angle, ) ################################################################# END OF FUNCTION DEFS ########################################################################################### diff --git a/Test.py b/Test.py index 33b9349..89224d2 100644 --- a/Test.py +++ b/Test.py @@ -1,4 +1,7 @@ import math +from magnet_modules import sweep_functions as sf + +# sf.test_func() def generate_angle_coord_list(radius, start_angle, end_angle, step_size, clockwise=True): # TODO: DOCS diff --git a/magnet_modules/__init__.py b/magnet_modules/__init__.py new file mode 100644 index 0000000..991aa1a --- /dev/null +++ b/magnet_modules/__init__.py @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magnet_modules/__pycache__/__init__.cpython-311.pyc b/magnet_modules/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..eccc9f2 Binary files /dev/null and b/magnet_modules/__pycache__/__init__.cpython-311.pyc differ diff --git a/magnet_modules/__pycache__/sweep_functions.cpython-311.pyc b/magnet_modules/__pycache__/sweep_functions.cpython-311.pyc new file mode 100644 index 0000000..d4d198a Binary files /dev/null and b/magnet_modules/__pycache__/sweep_functions.cpython-311.pyc differ diff --git a/magnet_modules/sweep_functions.py b/magnet_modules/sweep_functions.py new file mode 100644 index 0000000..f6b9361 --- /dev/null +++ b/magnet_modules/sweep_functions.py @@ -0,0 +1,2 @@ +def test_func(): + print('hello world! from test func') \ No newline at end of file