[hotfix refs #220] Missmatching ressource_id's only produced warning on exporting picks, but did not prevent event mixing
This commit is contained in:
parent
09b2dfa5d1
commit
fedb7c2c0d
@ -393,11 +393,11 @@ class Data(object):
|
|||||||
else:
|
else:
|
||||||
# prevent overwriting original pick information
|
# prevent overwriting original pick information
|
||||||
event_old = self.get_evt_data()
|
event_old = self.get_evt_data()
|
||||||
print(event_old.resource_id, event.resource_id)
|
|
||||||
if not event_old.resource_id == event.resource_id:
|
if not event_old.resource_id == event.resource_id:
|
||||||
print("WARNING: Missmatch in event resource id's: {} and {}".format(
|
print("WARNING: Missmatch in event resource id's: {} and {}".format(
|
||||||
event_old.resource_id,
|
event_old.resource_id,
|
||||||
event.resource_id))
|
event.resource_id))
|
||||||
|
else:
|
||||||
picks = copy.deepcopy(event_old.picks)
|
picks = copy.deepcopy(event_old.picks)
|
||||||
event = merge_picks(event, picks)
|
event = merge_picks(event, picks)
|
||||||
# apply event information from location
|
# apply event information from location
|
||||||
|
Loading…
Reference in New Issue
Block a user