Commit dea24550 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Replaces OhmPi imports with ohmpi imports

Showing with 3 additions and 3 deletions
+3 -3
...@@ -2,7 +2,7 @@ import numpy as np ...@@ -2,7 +2,7 @@ import numpy as np
import logging import logging
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from ohmpi.utils import change_config from ohmpi.utils import change_config
change_config('config_mb_2023_mux_2024.py', verbose=False) change_config('../configs/config_mb_2023_mux_2024.py', verbose=False)
from ohmpi.hardware_system import OhmPiHardware from ohmpi.hardware_system import OhmPiHardware
k = OhmPiHardware() k = OhmPiHardware()
...@@ -49,5 +49,5 @@ r = [np.abs((k.pulses[i]['polarity']*k.pulses[i]['vmn']-k.sp)/k.pulses[i]['iab'] ...@@ -49,5 +49,5 @@ r = [np.abs((k.pulses[i]['polarity']*k.pulses[i]['vmn']-k.sp)/k.pulses[i]['iab']
for i in range(len(r)): for i in range(len(r)):
print(f'Mean resistance with sp correction for pulse{i}: {np.mean(r[i]):.3f} Ohms, Dev. {100*np.std(r[i])/np.mean(r[i]):.1f} %') print(f'Mean resistance with sp correction for pulse{i}: {np.mean(r[i]):.3f} Ohms, Dev. {100*np.std(r[i])/np.mean(r[i]):.1f} %')
change_config('config_default.py', verbose=False) change_config('../configs/config_default.py', verbose=False)
...@@ -45,4 +45,4 @@ if within_ohmpi: ...@@ -45,4 +45,4 @@ if within_ohmpi:
time.sleep(1.) time.sleep(1.)
k.reset_mux() k.reset_mux()
change_config('config_default.py', verbose=False) change_config('../configs/config_default.py', verbose=False)
\ No newline at end of file \ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment