Commit d1dfae86 authored by Joanna Duda's avatar Joanna Duda

RM and WiiRM moved to new repository

refs: #32569
parent a6d70d31
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.2 (/usr/bin/python3.5)" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
rsion="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/tmp_repo.iml" filepath="$PROJECT_DIR$/.idea/tmp_repo.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
This diff is collapsed.
......@@ -33,11 +33,11 @@ class WBBReadManager():
x, y = self.get_x_y(top_left, top_right, bottom_right, bottom_left)
samples = self.mgr.get_samples()
chann_names = self.mgr.get_param('channels_names')
self.mgr.set_samples(np.vstack((samples,x)), chann_names + [u'x'])
self.mgr.set_samples(np.vstack((samples, x)), chann_names + [u'x'])
chann_off = self.mgr.get_param('channels_offsets')
self.mgr.set_param('channels_offsets',chann_off + [u'0.0'])
self.mgr.set_param('channels_offsets', chann_off + [u'0.0'])
chann_gain = self.mgr.get_param('channels_gains')
self.mgr.set_param('channels_gains',chann_gain + [u'1.0'])
self.mgr.set_param('channels_gains', chann_gain + [u'1.0'])
return x
def get_y(self):
......@@ -46,11 +46,11 @@ class WBBReadManager():
x, y = self.get_x_y(top_left, top_right, bottom_right, bottom_left)
samples = self.mgr.get_samples()
chann_names = self.mgr.get_param('channels_names')
self.mgr.set_samples(np.vstack((samples,y)), chann_names + [u'y'])
self.mgr.set_samples(np.vstack((samples, y)), chann_names + [u'y'])
chann_off = self.mgr.get_param('channels_offsets')
self.mgr.set_param('channels_offsets',chann_off + [u'0.0'])
self.mgr.set_param('channels_offsets', chann_off + [u'0.0'])
chann_gain = self.mgr.get_param('channels_gains')
self.mgr.set_param('channels_gains',chann_gain + [u'1.0'])
self.mgr.set_param('channels_gains', chann_gain + [u'1.0'])
return y
def get_x_y(self, tl, tr, br, bl):
......@@ -69,4 +69,4 @@ class WBBReadManager():
def get_timestamps(self):
"""Return timestamps channel."""
return self.mgr.get_channel_samples('TSS')
\ No newline at end of file
return self.mgr.get_channel_samples('TSS')
......@@ -43,4 +43,3 @@ class SamplePacket:
return True
else:
return False
Markdown is supported
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