Skip to content

Commit ec551a3

Browse files
committed
Merge branch 'development' into fourier-processing
2 parents 95ab486 + b01ced9 commit ec551a3

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

lightlab/equipment/lab_instruments/Keithley_2400_SM.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ def setCurrentMode(self, protectionVoltage=1):
7474

7575
def _configCurrent(self, currAmps):
7676
currAmps = float(currAmps)
77-
currAmps = np.clip(currAmps, a_min=1e-6, a_max=1.)
77+
if currAmps >= 0:
78+
currAmps = np.clip(currAmps, a_min=1e-9, a_max=1.)
79+
else:
80+
currAmps = np.clip(currAmps, a_min=-1, a_max=-1e-9)
7881
if currAmps != 0:
7982
needRange = 10 ** np.ceil(np.log10(abs(currAmps)))
8083
self.setConfigParam('SOURCE:CURR:RANGE', needRange)

lightlab/util/data/two_dim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
from itertools import repeat
1212

1313
from .one_dim import MeasuredFunction, Waveform
14+
from lightlab.laboratory import Hashable
1415

15-
16-
class FunctionBundle(object): # pylint: disable=eq-without-hash
16+
class FunctionBundle(Hashable): # pylint: disable=eq-without-hash
1717
''' A bundle of :class:`~lightlab.util.data.one_dim.MeasuredFunction`'s: "z" vs. "x", "i"
1818
1919
The key is that they have the same abscissa base.

0 commit comments

Comments
 (0)