scipion-pyworkflow 3.9.2__py3-none-any.whl → 3.10.0__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.
pyworkflow/constants.py CHANGED
@@ -43,7 +43,7 @@ VERSION_1 = '1.0.0'
43
43
  VERSION_1_1 = '1.1.0'
44
44
  VERSION_1_2 = '1.2.0'
45
45
  VERSION_2_0 = '2.0.0'
46
- VERSION_3_0 = '3.9.2'
46
+ VERSION_3_0 = '3.10.0'
47
47
 
48
48
  # For a new release, define a new constant and assign it to LAST_VERSION
49
49
  # The existing one has to be added to OLD_VERSIONS list.
@@ -358,6 +358,10 @@ class Protocol(Step):
358
358
  _package = None
359
359
  _plugin = None
360
360
 
361
+ # Maybe this property can be inferred from the
362
+ # prerequisites of steps, but is easier to keep it
363
+ stepsExecutionMode = STEPS_SERIAL
364
+
361
365
  def __init__(self, **kwargs):
362
366
  Step.__init__(self, **kwargs)
363
367
  self._size = None
@@ -410,9 +414,6 @@ class Protocol(Step):
410
414
  if not hasattr(self, 'hostFullName'):
411
415
  self.hostFullName = String()
412
416
 
413
- # Maybe this property can be inferred from the
414
- # prerequisites of steps, but is easier to keep it
415
- self.stepsExecutionMode = STEPS_SERIAL
416
417
 
417
418
  # Run mode
418
419
  self.runMode = Integer(kwargs.get('runMode', MODE_RESUME))
@@ -2451,6 +2452,7 @@ def runProtocolMain(projectPath, protDbPath, protId):
2451
2452
  executor = StepExecutor(hostConfig,
2452
2453
  gpuList=protocol.getGpuList())
2453
2454
 
2455
+ logger.info("Running protocol using the %s executor." % executor)
2454
2456
  protocol.setStepsExecutor(executor)
2455
2457
  # Finally run the protocol
2456
2458
  protocol.run()
pyworkflow/utils/path.py CHANGED
@@ -292,10 +292,11 @@ def createAbsLink(source, dest):
292
292
  """ Creates a link to a given file path"""
293
293
  if os.path.islink(dest):
294
294
  os.remove(dest)
295
-
295
+
296
296
  if os.path.exists(dest):
297
297
  raise Exception('Destination %s os.path.exists and is not a link' % dest)
298
-
298
+
299
+ source = os.path.abspath(source)
299
300
  os.symlink(source, dest)
300
301
 
301
302
 
pyworkflow/utils/utils.py CHANGED
@@ -498,7 +498,9 @@ class LazyDict(object):
498
498
  def parseBibTex(bibtexStr):
499
499
  """ Parse a bibtex file and return a dictionary. """
500
500
 
501
- return bibtexparser.loads(bibtexStr).entries_dict
501
+ return bibtexparser.loads(bibtexStr,
502
+ parser=bibtexparser.bparser.BibTexParser(common_strings=True)
503
+ ).entries_dict
502
504
 
503
505
 
504
506
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scipion-pyworkflow
3
- Version: 3.9.2
3
+ Version: 3.10.0
4
4
  Summary: Simple workflow platform used in scientific applications, initially developed within the Scipion framework for image processing in Electron Microscopy.
5
5
  Home-page: https://github.com/scipion-em/scipion-pyworkflow
6
6
  Author: J.M. De la Rosa Trevin, Roberto Marabini, Grigory Sharov, Josue Gomez Blanco, Pablo Conesa, Yunior Fonseca Reyna
@@ -1,6 +1,6 @@
1
1
  pyworkflow/__init__.py,sha256=Wr-MVKMQJy_Cy-rpPPB0-pyv8-8tx7GPPaLSNBrV1AI,1246
2
2
  pyworkflow/config.py,sha256=_sq6YCRfcfE4WUNXLShgbICbBeTSLpD2KmPVapR1Wos,22306
3
- pyworkflow/constants.py,sha256=Jmyas1LYRfbbYU1jWE9zfX1MvkMGlnS5vhPxPgpNNgs,7447
3
+ pyworkflow/constants.py,sha256=R9MnxV0n3oPb4pwacP6L80gj6inmkuP7yMS572s6OHQ,7448
4
4
  pyworkflow/exceptions.py,sha256=3VFxuNJHcIWxRnLPR0vYg0RFAQMmxPBJZLZSi87VI8E,507
5
5
  pyworkflow/object.py,sha256=yX3tBUuBssCI8aWGlTmyEKzFE59dJq_7NqllouVzMk0,55069
6
6
  pyworkflow/plugin.py,sha256=JJm5plPyOnPAR4To6I5rXVIBda-1Dg-53zicdnLSrac,28858
@@ -72,7 +72,7 @@ pyworkflow/protocol/hosts.py,sha256=B9ENNclqYe75CPqAMOoPjwn-r3ST6HxTewXtsK_zWks,
72
72
  pyworkflow/protocol/launch.py,sha256=7WKAiHma2tSuhqK4xVnxD_SnVt7Y5qyDFdQwTo8BLF0,11267
73
73
  pyworkflow/protocol/package.py,sha256=L6x3HHKtbrhDQRJHD07SG3DQKNMGaRQ0ROoLEY3SuRQ,1444
74
74
  pyworkflow/protocol/params.py,sha256=gP6QImgULvzCr-f0iseArIp1bjXm1JuUr9padmuMs7M,25901
75
- pyworkflow/protocol/protocol.py,sha256=f0Wi3dn4MRbZRylvjGxOZLNRDYT363ZSr-TmRPB2FuM,97091
75
+ pyworkflow/protocol/protocol.py,sha256=pwgaQzcnuJOkpBDJ8k7ZEc0DJ6m_BrZz627HvWZoW2E,97145
76
76
  pyworkflow/resources/Imagej.png,sha256=nU2nWI1wxZB_xlOKsZzdUjj-qiCTjO6GwEKYgZ5Risg,14480
77
77
  pyworkflow/resources/chimera.png,sha256=AKCuwMqmZo0Cg2sddMUjBWUhmAq-nPsAVCBpVrYNeiQ,815
78
78
  pyworkflow/resources/fa-exclamation-triangle_alert.png,sha256=31_XvRu0CkJ2dvHSpcBAR43378lIJTWwiag_A7SuUQc,585
@@ -102,13 +102,13 @@ pyworkflow/utils/dataset.py,sha256=141u2xb-FTe8nF6OVJBJtTNHWz7eDWd24veBWX7eoTI,1
102
102
  pyworkflow/utils/echo.py,sha256=ZXJRrmxUaTT4Xxf7_pQwg7Th341iFafTs66VEKNOZmE,3442
103
103
  pyworkflow/utils/graph.py,sha256=z3Hcj0I38du97DQEqNT5gk--SCDTRPlKotaCszoZfX8,4981
104
104
  pyworkflow/utils/log.py,sha256=8SIg1jwOKMQzGgDqutB7ZD42ZzLHslxULPvK-f1sDD0,10693
105
- pyworkflow/utils/path.py,sha256=k689N4OpN8stfZf1KSyF8U2JjELloxymwrsgyu9y2eI,16770
105
+ pyworkflow/utils/path.py,sha256=hDisc13HhfB6CxpBcI1JBd5er_S6yVTKw1MFSw1AR3U,16803
106
106
  pyworkflow/utils/process.py,sha256=m6gZ_9vHTJyzXOCGGIIwFCbXXoH7XC-Okn5SJzs1P1U,4717
107
107
  pyworkflow/utils/profiler.py,sha256=BC0KkAgfYqf-CV40zLcRxo5Td79f5jw1gzvaDH8iqt8,2218
108
108
  pyworkflow/utils/progressbar.py,sha256=VntEF_FTdQHjMKawfR1R4IoNgYNTEMmnLUIDvUXurxk,5903
109
109
  pyworkflow/utils/properties.py,sha256=D1LHkVn0cbxCHhedJE4XAw5ZwOufb_4z48IeJ0L0fWc,23960
110
110
  pyworkflow/utils/reflection.py,sha256=48cvIDO73JinBsFn3XMiVR56AcivfdJoiMXGM7ZwUDY,4429
111
- pyworkflow/utils/utils.py,sha256=t5QVNEI2-RJ1B457mozwJj3c_nwwoT_n4cYT23zoNy8,26205
111
+ pyworkflow/utils/utils.py,sha256=1Sm7UXBhZVL1ZvWHG_QCg32M66OE7OInGJZmPqX60mU,26329
112
112
  pyworkflow/utils/which.py,sha256=KuyKYE4GnkwMpBJoKgOMnx-hNZjHf6OTyqxEsdHIftI,8627
113
113
  pyworkflow/webservices/__init__.py,sha256=CfkvvoFQp2t2Tt5p7uOF_tpkZVWPHOl9TLlAtBlKPJ8,294
114
114
  pyworkflow/webservices/config.py,sha256=CuJeul6ToLvWPHIp3hmxFe0v0pbLGYa3owUdBhIDDsg,577
@@ -131,10 +131,10 @@ pyworkflowtests/tests/test_protocol_export.py,sha256=z18nKPkOnrYLMU8KqcnVsF6-ylQ
131
131
  pyworkflowtests/tests/test_protocol_output.py,sha256=8gnIFMRNmwPnIBRCG29WHJB6mqK4FLGn1jiXHtTD6pY,5980
132
132
  pyworkflowtests/tests/test_streaming.py,sha256=vOH-bKCM-fVUSsejqNnCX5TPXhdUayk9ZtJHsNVcfCY,1615
133
133
  pyworkflowtests/tests/test_utils.py,sha256=_pTYGCuXC7YNMdCBzUYNfSBCR3etrHsxHfIhsQi4VPc,7465
134
- scipion_pyworkflow-3.9.2.dist-info/LICENSE.txt,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
135
- scipion_pyworkflow-3.9.2.dist-info/METADATA,sha256=xDDA-wk5EQkOXD26Jimq83-2oKP2dWWdRn9FfDbLsas,4681
136
- scipion_pyworkflow-3.9.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
137
- scipion_pyworkflow-3.9.2.dist-info/dependency_links.txt,sha256=D7r_CPRjYRtBb3q_OBocTdsaeXI5TwnYMu5ri0JFtzs,84
138
- scipion_pyworkflow-3.9.2.dist-info/entry_points.txt,sha256=oR-zwsOICjEPINm-FWVPp-RfnpXZanVal4_XG6BWkkQ,127
139
- scipion_pyworkflow-3.9.2.dist-info/top_level.txt,sha256=PzyJteyenJwLjAeSFP7oYrTN_U71GABQwET8oLZkh9k,27
140
- scipion_pyworkflow-3.9.2.dist-info/RECORD,,
134
+ scipion_pyworkflow-3.10.0.dist-info/LICENSE.txt,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
135
+ scipion_pyworkflow-3.10.0.dist-info/METADATA,sha256=VMXHL5VKBHV-p3EyaKLc1yk_E7tUVSUkH2bQSBnLX7w,4682
136
+ scipion_pyworkflow-3.10.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
137
+ scipion_pyworkflow-3.10.0.dist-info/dependency_links.txt,sha256=D7r_CPRjYRtBb3q_OBocTdsaeXI5TwnYMu5ri0JFtzs,84
138
+ scipion_pyworkflow-3.10.0.dist-info/entry_points.txt,sha256=oR-zwsOICjEPINm-FWVPp-RfnpXZanVal4_XG6BWkkQ,127
139
+ scipion_pyworkflow-3.10.0.dist-info/top_level.txt,sha256=PzyJteyenJwLjAeSFP7oYrTN_U71GABQwET8oLZkh9k,27
140
+ scipion_pyworkflow-3.10.0.dist-info/RECORD,,