diff --git a/README.rst b/README.rst index 77d62adbca6fe87ae74a67cdeb5b933cdd0b9571..8ec1a4c38e41c7e2dbc061ed8439c92174f18884 100644 --- a/README.rst +++ b/README.rst @@ -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 : diff --git a/docs/source/conf.py b/docs/source/conf.py index f74697da9f4763e44ebcd5711c233945af45e1b3..2875ddb1eb61cf4673effe8a312191fba11c3419 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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'] diff --git a/summit/tests/test_utils/test_transormations.py b/summit/tests/test_utils/test_transormations.py new file mode 100644 index 0000000000000000000000000000000000000000..6788c15ce021657676c48d696a8582953d1a7dd0 --- /dev/null +++ b/summit/tests/test_utils/test_transormations.py @@ -0,0 +1,20 @@ +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)