Conversation
903a878 to
80041a4
Compare
marcboulle
left a comment
There was a problem hiding this comment.
Je ne comprend pas les propositions, qui ne répondent pas simplement au besoin exprimé.
Le fichier json contient des informations selon un format le plus simple possible à exploiter, et les classes python devraient juste être un wrapper minimaliste, permettant de retrouver simplement les information du json, avec éventuellement des helpers.
En l'occurrence, il me semble que le seul ajout a effectuer est d'ajouter l'accès à cellPartIndexespar cellules, via le nouvel attribut part_indexes, l'attribut existant parts ayant un rôle de helper pour accéderr directement aux objets concernés.
class CoclusteringCell:
"""A coclustering cell
.. note::
This class has only a no-parameter constructor initializing an instance with the
default values.
Attributes
----------
part_indexes : list of int
Part indexes for each dimension of the coclustering.
parts : list of `CoclusteringDimensionPart`
Parts for each dimension of the coclustering, associated with the corresponding indexes.
frequency : int
Frequency of this cell.
"""
Ok, it seems simpler indeed to just add a |
80041a4 to
e5c261b
Compare
|
Looks good for me but is it possible to add the case in the automated test in |
In the latest update there are no more accessors related to the scope of the PR. It's just an attribute that is being initialized directly from the JSON file. |
The
CoclusteringCell.part_indexesattribute is initialized from thecellPartIndexesJSON attribute directly.closes #569.
TODO Before Asking for a Review
main(ormain-v10)Unreleasedsection ofCHANGELOG.md(no date)index.html