(path, mode="r")
| 76 | |
| 77 | @staticmethod |
| 78 | def load_json(path, mode="r"): |
| 79 | if "s3://" not in path: |
| 80 | js = json.load(open(path, mode)) |
| 81 | else: |
| 82 | js = json.loads(PetrelHelper._petrel_helper.load_data(path, ceph_read=False)) |
| 83 | return js |
| 84 | |
| 85 | @staticmethod |
| 86 | def download_json(path, local_path, mode="r"): |