Skip to content

Commit

Permalink
Added array datatypes to shorthand list
Browse files Browse the repository at this point in the history
  • Loading branch information
markgw committed Aug 5, 2019
1 parent 258bd05 commit 9a4d98f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/python/pimlico/datatypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
from .gensim import GensimLdaModel
from .corpora.base import IterableCorpus
from .corpora.grouped import GroupedCorpus
from .arrays import NumpyArray, ScipySparseMatrix

# All builtin datatypes that may be easily loaded using their
# class names of datatype names from config files
BUILTIN_DATATYPES = [
PimlicoDatatype, IterableCorpus, GroupedCorpus,
StringList, Dict, NamedFileCollection, NamedFile, TextFile, Dictionary,
Embeddings, TSVVecFiles, GensimLdaModel,
Embeddings, TSVVecFiles, GensimLdaModel, NumpyArray, ScipySparseMatrix,
]
BUILTIN_DATATYPES_BY_DATATYPE_NAME = dict(
# Go through them in reverse, so that, if we make a mistake and have a duplicate name, the
Expand Down
6 changes: 0 additions & 6 deletions src/python/pimlico/datatypes/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"""
Wrappers around Numpy arrays and Scipy sparse matrices.
.. todo::
During Python 2-3 conversion, an ``object`` base class was added to ``NumpyArray.Reader``
and ``Writer`` and ``ScipySparseMatrix.Reader`` and ``Writer``.
Check that these still work as they used to.
"""

from builtins import object
Expand Down

0 comments on commit 9a4d98f

Please sign in to comment.