Skip to content

Commit d2e0e6a

Browse files
authored
Update Cryomagnetics_4G.pm to fix stric error
Changed the _tesla_to_amp function to call the field_constant from $self.
1 parent 2faef5a commit d2e0e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Lab/Moose/Instrument/Cryomagnetics_4G.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ sub _tesla_to_amp {
9898
value => { isa => 'num' },
9999
);
100100

101-
return $value * field_constant;
101+
return $value * $self->field_constant();
102102
}
103103

104104

0 commit comments

Comments
 (0)