Skip to content
Snippets Groups Projects
Commit 64cd6489 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Readme update working

parent 33ab58ac
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,24 @@ Getting Started
Prerequisites (will be automatically installed)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
SuMMIT has been designed and uses continuous integration for Linux platforms (ubuntu 18.04), but we try to keep it as compatible as possible with Mac and Windows.
Last tests on each platform :
+----------+-------------------+
| Platform | Last positive test|
+==========+===================+
| Linux | Continuous |
+----------+-------------------+
| Mac | 1st of May, 2020 |
+----------+-------------------+
| Windows | 1st of May, 2020 |
+----------+-------------------+
To be able to use this project, you'll need :
* `Python 3.6 <https://docs.python.org/3/>`_
* `Python 3 <https://docs.python.org/3/>`_
And the following python modules :
......
......@@ -54,8 +54,8 @@ extensions = ['sphinx.ext.autodoc',
# 'sphinx.ext.ifconfig',
# 'sphinx.ext.viewcode',
# 'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'recommonmark']
'sphinx.ext.napoleon',]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
......
import unittest
import numpy as np
from summit.multiview_platform.utils import transformations
class TestFunctions(unittest.TestCase):
def test_simple_sign(self):
trans = transformations.sign_labels(np.zeros(10))
np.testing.assert_array_equal(np.ones(10) * -1, trans)
trans = transformations.sign_labels(np.ones(10))
np.testing.assert_array_equal(np.ones(10), trans)
def test_simple_unsign(self):
trans = transformations.unsign_labels(np.ones(10) * -1)
np.testing.assert_array_equal(np.zeros(10), trans)
trans = transformations.unsign_labels(np.ones(10).reshape((10, 1)))
np.testing.assert_array_equal(np.ones(10), trans)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment