cossatot / lanf_earthquake_likelihood

Project on calculating the likelihood of observing a significant low-angle normal fault earthquake over some instrumental time period.
3 stars 9 forks source link

calc_Mo_from_fault_params and calc_recurrence_interval modify parameters #11

Closed cossatot closed 10 years ago

cossatot commented 10 years ago

there is a bug in these two functions:


def calc...():
    ...
    if area_dim == 'km':
        L *= 1000
        z *= 1000

causes the input parameters to be modified.

cossatot commented 10 years ago

Fixed with commit bb2065d539f9cc45a4ae830462cc9000fd119edd

Changed to:

def calc...():
    ...
    if area_dim == 'km':
        L = L * 1000
        z = z * 1000

and so forth.