Пример #1
0
 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)
Пример #2
0
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)
Пример #3
0
 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)