def encode_json_then_decode(self, obj, check_format=True): from dxtbx.datablock import DataBlockFactory import json string = json.dumps([db.to_dict() for db in obj], ensure_ascii=True) return DataBlockFactory.from_json(string, check_format=check_format)
def encode_json_then_decode(obj, check_format=True): string = json.dumps([db.to_dict() for db in obj], ensure_ascii=True) return DataBlockFactory.from_json(string, check_format=check_format)
def encode_json_then_decode(self, obj, check_format=True): from dxtbx.datablock import DataBlockFactory import json string = json.dumps([db.to_dict() for db in obj], ensure_ascii=True) return DataBlockFactory.from_json(string, check_format=check_format)