Skip to content

Move responsibility for proper handling different versions of format to ZipLoaders or other dedicated classes. #6

Description

@abukaj

def _fromZipCSV(self, zf, path, source=None, oldLabels=None):

uses
_convertZip = {'Animals': {#'Tag': int,

dictionary to convert columns of CSV files to appropriate type. As names of columns differ with versions - that makes format handling a responsibility of the Loader.

In the development branches there are further examples of such responsibility, like:
https://github.com/Neuroinflab/PyMICE/blob/format_version_2/lib/pymice/_ICData.py#L322

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions