code: def compute_gmfs(rupgetter, srcfilter, param, monitor):
      
      getter = GmfGetter(rupgetter, srcfilter, param['oqparam'])
      with monitor('getting ruptures'):
          getter.init()
      return getter.compute_gmfs_curves(monitor)
docs: Compute GMFs and optionally hazard curves