From ff68400320cf1660eb9c94b3e9c2077390a1aef1 Mon Sep 17 00:00:00 2001 From: Brendan Smithyman Date: Tue, 10 Nov 2015 12:26:55 -0500 Subject: [PATCH] Be compatible with outside metaclasses, for now Making this change would allow use of metaclasses in a more straightforward way for code that inherits from both SimPEG classes and external classes. In the future, this may need to be addressed in more detail. --- SimPEG/Utils/codeutils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SimPEG/Utils/codeutils.py b/SimPEG/Utils/codeutils.py index 0ba57b2e..4a9a28a7 100644 --- a/SimPEG/Utils/codeutils.py +++ b/SimPEG/Utils/codeutils.py @@ -3,10 +3,7 @@ import time import numpy as np from functools import wraps - -class SimPEGMetaClass(type): - def __new__(cls, name, bases, attrs): - return super(SimPEGMetaClass, cls).__new__(cls, name, bases, attrs) +SimPEGMetaClass = type def memProfileWrapper(towrap, *funNames): """