Possibly deal with a good chunk of the old_divs

This commit is contained in:
Brendan Smithyman
2016-07-17 16:02:43 -05:00
parent 7189ec5b2f
commit f7a70aa6a7
85 changed files with 369 additions and 454 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ from __future__ import print_function
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from past.utils import old_div
import SimPEG as simpeg
import numpy as np
import SimPEG.MT as MT
@@ -91,7 +90,7 @@ def run(plotIt=True):
std = 0.05 # 5% std
survey.std = np.abs(survey.dobs*std)
# Assign the data weight
Wd = old_div(1.,survey.std)
Wd = 1./survey.std
## Setup the inversion proceedure
# Define a counter