(path, local_path, mode="r")
| 84 | |
| 85 | @staticmethod |
| 86 | def download_json(path, local_path, mode="r"): |
| 87 | if "s3://" not in path: |
| 88 | js = json.load(open(path, mode)) |
| 89 | else: |
| 90 | js = json.loads(PetrelHelper._petrel_helper.load_data(path, ceph_read=False)) |
| 91 | |
| 92 | with open(local_path, "w") as f: |
| 93 | json.dump(js, f) |
| 94 | |
| 95 | @staticmethod |
| 96 | def download_file(path, local_path, mode="r"): |
no test coverage detected