dsa-helpers 0.4.dev2__py3-none-any.whl → 0.4.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,10 +89,8 @@ def add_many_to_collection(
89
89
 
90
90
  operations = []
91
91
 
92
- for item in items:
93
- operations.append(
94
- pymongo.UpdateOne({"_id": item[key]}, {"$set": item}, upsert=True)
95
- )
92
+ for _id, item in items.items():
93
+ operations.append(pymongo.UpdateOne({"_id": _id}, {"$set": item}, upsert=True))
96
94
 
97
95
  for chunk in chunks(operations):
98
96
  _ = mongo_collection.bulk_write(chunk)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dsa_helpers
3
- Version: 0.4.dev2
3
+ Version: 0.4.dev3
4
4
  Summary: Utility functions for working with the DSA girder client.
5
5
  Author-email: "Juan C. Vizcarra" <jvizcar@emory.edu>
6
6
  Maintainer-email: "Juan C. Vizcarra" <jvizcar@emory.edu>
@@ -4,7 +4,7 @@ dsa_helpers/image_utils.py,sha256=6VUteE_0MfFoRNHt4E2v7pb8XoSjbBxwdhNCk9Gzmgs,17
4
4
  dsa_helpers/imread.py,sha256=jPr6hO4TOtGphENJQWLLtTaQ377yAwLe4F9jSAehJXQ,885
5
5
  dsa_helpers/imwrite.py,sha256=eQI8VGn7M35_85QMPrNqGgS66iQn9YboCS50tigAE8s,1159
6
6
  dsa_helpers/login.py,sha256=-QyVLW9fKywiPUQCPWxF1BIsufAOqMizDM062nUbupA,1147
7
- dsa_helpers/mongo_utils.py,sha256=Y3vkhGXpGAbPoDIcv6dZfVoHgmIW64AB6EDMkgMFc5w,4694
7
+ dsa_helpers/mongo_utils.py,sha256=x-66p8DQHYA-mhLnAFKaTcDea43dlSD6bYVf9nQiJds,4679
8
8
  dsa_helpers/dash/__init__.py,sha256=tNGwvi7Rgr_cSYT7qbbB3Y0mlBZ0pFEA5WFPXjQpugE,21
9
9
  dsa_helpers/dash/header.py,sha256=6AsI4npuxhE2_zOZf8OKlkkEkXJze_-fSvMA3OoMucM,4898
10
10
  dsa_helpers/dash/header_callbacks.py,sha256=tpf2PU8cgGsecQTWCByxq-Q_v_wUoRikozxRn3brB_4,3256
@@ -13,8 +13,8 @@ dsa_helpers/ml/object_detection/__init__.py,sha256=StdNYGjQ3dcJfr5uvUCdWi_XiZpkK
13
13
  dsa_helpers/ml/object_detection/get_pearce_roi_images.py,sha256=bHV-GpCcm_t8_RaA-TQs3M8E2zI2Q6rrEc0etPV5PGI,4466
14
14
  dsa_helpers/ml/object_detection/tile_image.py,sha256=GR6kmhtWVlZOmmoybyw_amew9UdZCj68PWL80kqkdQ4,4492
15
15
  dsa_helpers/ml/object_detection/utils.py,sha256=OOwljZTinMHk106-GS2qYXcQTrH7OwO7v9G9SBfTu9E,3273
16
- dsa_helpers-0.4.dev2.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
17
- dsa_helpers-0.4.dev2.dist-info/METADATA,sha256=MrL5fGz0rfDcslkjzQJOj0OgZzF9e26gBtsu6FBQCoU,1814
18
- dsa_helpers-0.4.dev2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
19
- dsa_helpers-0.4.dev2.dist-info/top_level.txt,sha256=BmAEDVvDa1MJlSUFHWzx73UKec3o1K6dFUd9tHwgHGo,12
20
- dsa_helpers-0.4.dev2.dist-info/RECORD,,
16
+ dsa_helpers-0.4.dev3.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
17
+ dsa_helpers-0.4.dev3.dist-info/METADATA,sha256=-jIM7Me2OGj-9ZXZQ_mRm9RAfWzEtvca1NN7XdmIY60,1814
18
+ dsa_helpers-0.4.dev3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
19
+ dsa_helpers-0.4.dev3.dist-info/top_level.txt,sha256=BmAEDVvDa1MJlSUFHWzx73UKec3o1K6dFUd9tHwgHGo,12
20
+ dsa_helpers-0.4.dev3.dist-info/RECORD,,