def test_PhotonRegistry_get_element_metadata_SmoothImages(): # too many args r = PhotonRegistry() md = r.load_json( PhotonRegistry.PHOTON_REGISTRIES[PhotonRegistry.PhotonNeuroID]) assert r.get_element_metadata('SmoothImages', md)[3] == SM_MD[2]
def test_PhotonRegistry_get_element_metadata_KMEANS_ERROR(): # too many args r = PhotonRegistry() md = r.load_json( PhotonRegistry.PHOTON_REGISTRIES[PhotonRegistry.PhotonCoreID]) with pytest.raises(PhotonaiError): assert r.get_element_metadata('FRED', md)[0:2] == GM_MD[0:2]
def test_PhotonRegistry_get_element_metadata_PCA(): # too many args r = PhotonRegistry() md = r.load_json( PhotonRegistry.PHOTON_REGISTRIES[PhotonRegistry.PhotonCoreID]) assert r.get_element_metadata('PCA', md)[0:2] == PCA_MD[0:2]
def test_PhotonRegistry_get_element_metadata_KMEANS(): # too many args r = PhotonRegistry() md = r.load_json(PHOTON_pkgs[1]) assert r.get_element_metadata('KMeans', md)[0] == KMEANS_MD[0]