def grab_artifact(jenkinsurl, jobid, artifactid, targetdir):
    artifacts = get_artifacts( jenkinsurl, jobid )
    artifact = artifacts[ artifactid ]
    if not os.path.exists( targetdir ):
        os.makedirs( targetdir )
    artifact.savetodir( targetdir)
restrict the edge values to a coarser grid.  Return a new
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/api.py/grab_artifact--crossover with--dataset/ETHPy150Open zingale/pyro2/multigrid/edge_coeffs.py/EdgeCoeffs.restrict