BlueBrain / morphoclass

Neuronal morphology preparation and classification using Machine Learning.
https://morphoclass.readthedocs.io
Apache License 2.0
8 stars 4 forks source link

`MorphologyDataset` has no method `to_persistence_dataset()` #76

Closed FrancescoCasalegno closed 2 years ago

FrancescoCasalegno commented 2 years ago

Reported by @YannRoussel.

Context

@YannRoussel is trying to use PersLay, so he is following the instructions in the docs. In particular, the docs mention that the data should be loaded by https://github.com/BlueBrain/morphoclass/blob/8c60e050a39eee50aecf2eed5333eee61dd85e56/docs/source/sections/using_perslay.rst?plain=1#L28 where the function load_persistence_dataset() is also defined in the docs as https://github.com/BlueBrain/morphoclass/blob/8c60e050a39eee50aecf2eed5333eee61dd85e56/docs/source/sections/using_cnn.rst?plain=1#L27-L41

Issue

When running the code above, the following exception is raised:

  File "load_dataset.py", line 25, in <module>
    diagrams, images, labels = load_persistence_dataset("paths_family_labels.csv")
  File "load_dataset.py", line 20, in load_persistence_dataset
    dataset_pi = dataset.to_persistence_dataset()
AttributeError: 'MorphologyDataset' object has no attribute 'to_persistence_dataset'

Checking the source code, there is indeed no `MorphologyDataset.to_persistence_dataset()' method.