code stringlengths 3 6.57k |
|---|
reduce_margin(self, symbol, amount, params={}) |
self.modify_margin_helper(symbol, amount, 2, params) |
add_margin(self, symbol, amount, params={}) |
self.modify_margin_helper(symbol, amount, 1, params) |
fetch_borrow_rate(self, code, params={}) |
self.load_markets() |
self.currency(code) |
self.safe_integer(params, 'vipLevel') |
self.sapiGetMarginInterestRateHistory(self.extend(request, params) |
self.safe_value(response, 0) |
self.safe_number(rate, 'timestamp') |
self.safe_number(rate, 'dailyInterestRate') |
self.iso8601(timestamp) |
SetTransformNode(ArmLogicTreeNode) |
init(self, context) |
super(SetTransformNode, self) |
init(context) |
self.add_input('ArmNodeSocketAction', 'In') |
self.add_input('ArmNodeSocketObject', 'Object') |
self.add_input('NodeSocketShader', 'Transform') |
self.add_output('ArmNodeSocketAction', 'Out') |
add_node(SetTransformNode, category=PKG_AS_CATEGORY) |
Copyright (c) |
path.abspath(path.dirname(__file__) |
open(path.join(here, "README.rst") |
f.read() |
find_packages() |
TestVerifyPluginVersion(unittest.TestCase) |
patch("ssmpfwd.helpers.subprocess") |
test_verify_plugin_version_success(self, mock_subprocess) |
mock_subprocess.run() |
self.assertTrue(verify_plugin_version("9.8.3") |
patch("ssmpfwd.helpers.subprocess") |
test_verify_plugin_version_fail(self, mock_subprocess) |
self.assertLogs("ssmpfwd.helpers", level="INFO") |
mock_subprocess.run() |
self.assertFalse(verify_plugin_version("9.2.3") |
self.assertEqual(cm.output[0], "ERROR:ssmpfwd.helpers:session-manager-plugin version 1.8.1 is installed, 9.2.3 is required") |
TestVerboseDebugQuiet(unittest.TestCase) |
setUp(self) |
test_func() |
self.vdq() |
test_quiet(self) |
self.assertTrue(any([p.name == option_name for p in self.vdq.__click_params__]) |
test_debug(self) |
self.assertTrue(any([p.flag_value == flag_value for p in self.vdq.__click_params__]) |
test_verbose(self) |
self.assertTrue(any([p.flag_value == flag_value for p in self.vdq.__click_params__]) |
test_default_loglevel(self) |
self.assertTrue(any([p.flag_value == flag_value for p in self.vdq.__click_params__]) |
TestTimeDecorator(unittest.TestCase) |
setUp(self) |
test_func() |
self.sleep(0.5) |
test_time_decorartor(self) |
self.assertLogs("ssmpfwd.helpers", level="INFO") |
self.time_decorated_method() |
self.assertEqual(cm.output[0], "INFO:ssmpfwd.helpers:[*] starting test_func") |
ureg.setup_matplotlib(True) |
ufloat(0.82, 0.82*0.1) |
pd.read_csv("./ESRB.csv") |
to('ampere') |
min() |
max() |
len(df) |
mean() |
to('ampere') |
ufloat(3.09, 0.01) |
plt.subplots() |
np.array([val.m.s for val in I0_modulation]) |
np.array([val.m.n for val in I0_modulation]) |
max(ptp_ratio) |
np.array([val.m.n for val in absorption_deriviative]) |
np.array([val.m.s for val in absorption_deriviative]) |
lorentzian_dif_fit(I, I0, gamma, amplitude) |
lorentzian_fit(I, I0, gamma, amplitude) |
ufloat(matlab_p0[0], abs(matlab_bounds[0][0] - matlab_p0[0]) |
ufloat(matlab_p0[1], abs(matlab_bounds[0][1] - matlab_p0[1]) |
ufloat(34.914, 0.009) |
I2f(I) |
return (I*k*g_times_bohr/ureg.planck_constant) |
to('megahertz') |
I2f(I0_modulation) |
I2f(I_rf) |
I2f(I_hwhm) |
to('nanosecond') |
lorentzian_dif_fit(I0_modulation_raw, *popt) |
I0_modulation.min() |
I0_modulation.max() |
len(I0_modulation) |
lorentzian_dif_fit(I0_modulation_seq, I_rf.m.n, I_hwhm.m.n, matlab_p0[2]) |
ax.set_yticks([]) |
ax.twiny() |
axt.grid(linestyle='--') |
axt.set_yticks([]) |
f0_modulation.min() |
f0_modulation.max() |
len(f0_modulation) |
lorentzian_wrapper(f0) |
lorentzian_fit(f0, f_rf.m.n, f_hwhm.m.n, matlab_p0[2]*800) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.