synapse-sdk 1.0.0a92__py3-none-any.whl → 1.0.0a93__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.

Potentially problematic release.


This version of synapse-sdk might be problematic. Click here for more details.

@@ -311,6 +311,21 @@ class ExportAction(Action):
311
311
  self.params['results'], self.params['count'] = self.get_filtered_results(filters, handler)
312
312
  export_items = handler.get_export_item(self.params['results'])
313
313
 
314
+ # For the 'ground_truth' target, retrieve project information from the first result and add configuration
315
+ if target == 'ground_truth':
316
+ try:
317
+ first_result = next(iter(self.params['results']))
318
+ project_pk = first_result['project']
319
+ project_info = self.client.get_project(project_pk)
320
+ self.params['configuration'] = project_info.get('configuration', {})
321
+ except StopIteration:
322
+ self.params['configuration'] = {}
323
+ # For the 'assignment' and 'task' targets, retrieve the project from the filter as before
324
+ elif target in ['assignment', 'task'] and 'project' in self.params['filter']:
325
+ project_pk = self.params['filter']['project']
326
+ project_info = self.client.get_project(project_pk)
327
+ self.params['configuration'] = project_info.get('configuration', {})
328
+
314
329
  storage = self.client.get_storage(self.params['storage'])
315
330
  pathlib_cwd = get_pathlib(storage, self.params['path'])
316
331
  return self.entrypoint(self.run, export_items, pathlib_cwd, **self.params)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a92
3
+ Version: 1.0.0a93
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -124,7 +124,7 @@ synapse_sdk/plugins/categories/data_validation/templates/plugin/validation.py,sh
124
124
  synapse_sdk/plugins/categories/export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
125
  synapse_sdk/plugins/categories/export/enums.py,sha256=gtyngvQ1DKkos9iKGcbecwTVQQ6sDwbrBPSGPNb5Am0,127
126
126
  synapse_sdk/plugins/categories/export/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
127
- synapse_sdk/plugins/categories/export/actions/export.py,sha256=buCpjRPZ-QPfEANKrSopKjCPHadjF1_A0eAkoezaAFA,10688
127
+ synapse_sdk/plugins/categories/export/actions/export.py,sha256=UZaL6F7rHgbF5FSGpXuA3iDaSE1zJ193I_NhjfE1GWk,11598
128
128
  synapse_sdk/plugins/categories/export/templates/config.yaml,sha256=N7YmnFROb3s3M35SA9nmabyzoSb5O2t2TRPicwFNN2o,56
129
129
  synapse_sdk/plugins/categories/export/templates/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
130
130
  synapse_sdk/plugins/categories/export/templates/plugin/export.py,sha256=GDb6Ucodsr5aBPMU4alr68-DyFoLR5TyhC_MCaJrkF0,6411
@@ -221,9 +221,9 @@ synapse_sdk/utils/storage/providers/gcp.py,sha256=i2BQCu1Kej1If9SuNr2_lEyTcr5M_n
221
221
  synapse_sdk/utils/storage/providers/http.py,sha256=2DhIulND47JOnS5ZY7MZUex7Su3peAPksGo1Wwg07L4,5828
222
222
  synapse_sdk/utils/storage/providers/s3.py,sha256=ZmqekAvIgcQBdRU-QVJYv1Rlp6VHfXwtbtjTSphua94,2573
223
223
  synapse_sdk/utils/storage/providers/sftp.py,sha256=_8s9hf0JXIO21gvm-JVS00FbLsbtvly4c-ETLRax68A,1426
224
- synapse_sdk-1.0.0a92.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
225
- synapse_sdk-1.0.0a92.dist-info/METADATA,sha256=rgd7NlW1PQcONlc6id4nnf55eW5-1-kW0IxO-A--hZo,3837
226
- synapse_sdk-1.0.0a92.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
227
- synapse_sdk-1.0.0a92.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
228
- synapse_sdk-1.0.0a92.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
229
- synapse_sdk-1.0.0a92.dist-info/RECORD,,
224
+ synapse_sdk-1.0.0a93.dist-info/licenses/LICENSE,sha256=bKzmC5YAg4V1Fhl8OO_tqY8j62hgdncAkN7VrdjmrGk,1101
225
+ synapse_sdk-1.0.0a93.dist-info/METADATA,sha256=NQ5zn-ID4jYmBauhJUpI351Eyfos0i9pRmIqPFuOZUY,3837
226
+ synapse_sdk-1.0.0a93.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
227
+ synapse_sdk-1.0.0a93.dist-info/entry_points.txt,sha256=VNptJoGoNJI8yLXfBmhgUefMsmGI0m3-0YoMvrOgbxo,48
228
+ synapse_sdk-1.0.0a93.dist-info/top_level.txt,sha256=ytgJMRK1slVOKUpgcw3LEyHHP7S34J6n_gJzdkcSsw8,12
229
+ synapse_sdk-1.0.0a93.dist-info/RECORD,,