From 20002f9e0af5059b573749e100ccb42e571c23b5 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Mon, 25 Feb 2019 19:09:59 +0100 Subject: [PATCH] Remove the `Error` data sub class This was added at one point for the reimplementation of legacy workflows and started out as an internal exception wrapper but was ultimately never used. --- aiida/orm/nodes/data/__init__.py | 3 +-- aiida/orm/nodes/data/error.py | 21 --------------------- setup.json | 1 - 3 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 aiida/orm/nodes/data/error.py diff --git a/aiida/orm/nodes/data/__init__.py b/aiida/orm/nodes/data/__init__.py index f92bd102ef..80296457bc 100644 --- a/aiida/orm/nodes/data/__init__.py +++ b/aiida/orm/nodes/data/__init__.py @@ -18,7 +18,6 @@ from .cif import CifData from .code import Code from .data import Data -from .error import Error from .float import Float from .folder import FolderData from .frozendict import FrozenDict @@ -33,5 +32,5 @@ from .upf import UpfData __all__ = ('Data', 'BaseType', 'ArrayData', 'BandsData', 'KpointsData', 'ProjectionData', 'TrajectoryData', 'XyData', - 'Bool', 'CifData', 'Code', 'Error', 'Float', 'FolderData', 'FrozenDict', 'Int', 'List', 'OrbitalData', + 'Bool', 'CifData', 'Code', 'Float', 'FolderData', 'FrozenDict', 'Int', 'List', 'OrbitalData', 'ParameterData', 'RemoteData', 'SinglefileData', 'Str', 'StructureData', 'UpfData') diff --git a/aiida/orm/nodes/data/error.py b/aiida/orm/nodes/data/error.py deleted file mode 100644 index 6dd17ffb16..0000000000 --- a/aiida/orm/nodes/data/error.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -########################################################################### -# Copyright (c), The AiiDA team. All rights reserved. # -# This file is part of the AiiDA code. # -# # -# The code is hosted on GitHub at https://github.com/aiidateam/aiida_core # -# For further information on the license, see the LICENSE.txt file # -# For further information please visit http://www.aiida.net # -########################################################################### -"""`Data` sub class to represent an error.""" -from __future__ import division -from __future__ import print_function -from __future__ import absolute_import - -from .data import Data - -__all__ = ('Error',) - - -class Error(Data): - """`Data` sub class to represent an error.""" diff --git a/setup.json b/setup.json index 8e316af6bc..9a681e33ab 100644 --- a/setup.json +++ b/setup.json @@ -152,7 +152,6 @@ "bool = aiida.orm.nodes.data.bool:Bool", "cif = aiida.orm.nodes.data.cif:CifData", "code = aiida.orm.nodes.data.code:Code", - "error = aiida.orm.nodes.data.error:Error", "float = aiida.orm.nodes.data.float:Float", "folder = aiida.orm.nodes.data.folder:FolderData", "frozendict = aiida.orm.nodes.data.frozendict:FrozenDict",