Commit c2462d8c authored by Marius Isken's avatar Marius Isken
Browse files

bugfix GNSSTarget

parent d58c6fce
......@@ -2,10 +2,9 @@ import logging
import numpy as num
from pyrocko import gf
from pyrocko.guts import String, Bool, Dict, List
from pyrocko.guts import String, Dict, List
from .base import MisfitTarget, MisfitConfig, MisfitResult, TargetGroup
from ..meta import Parameter
guts_prefix = 'grond'
logger = logging.getLogger('grond.target').getChild('satellite')
......@@ -107,7 +106,7 @@ class GNSSCampaignMisfitTarget(gf.GNSSCampaignTarget, MisfitTarget):
def weights(self):
if self._weights is None:
self._weights = 1./self.obs_sigma
self._weights[self._weights==num.inf] = 1.
self._weights[self._weights == num.inf] = 1.
return self._weights
def post_process(self, engine, source, statics):
......@@ -115,7 +114,7 @@ class GNSSCampaignMisfitTarget(gf.GNSSCampaignTarget, MisfitTarget):
weights = self.weights
syn = num.array([statics['displacement.n'],
statics['displacement.e'],
statics['displacement.d']])
-statics['displacement.d']])
res = obs - syn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment