@@ -241,14 +241,12 @@ def add(x, y):
241
241
# is a dictionary with keys and values returned by a function. Each value in
242
242
# this dictionary will be serialized to AiiDA data, and the key-value pair
243
243
# will be stored in the database.
244
+ #
244
245
# Why Use Namespace Outputs?
245
246
#
246
- # - **Dynamic and Flexible**: The keys and values in the namespace output are
247
- # not fixed and can change based on the task's execution.
248
- # - **Querying**: The data in the namespace output is stored as an AiiDA data
249
- # node, allowing for easy querying and retrieval.
250
- # - **Data Provenance**: When the data is used as input for subsequent tasks,
251
- # the origin of data is tracked.
247
+ # - **Dynamic and Flexible**: The keys and values in the namespace output are not fixed and can change based on the task's execution. # noqa
248
+ # - **Querying**: The data in the namespace output is stored as an AiiDA data node, allowing for easy querying and retrieval. # noqa
249
+ # - **Data Provenance**: When the data is used as input for subsequent tasks, the origin of data is tracked.
252
250
#
253
251
# For example: Consider a molecule adsorption calculation where the namespace
254
252
# output stores the surface slabs of the molecule adsorbed on different surface
@@ -332,7 +330,7 @@ def generate_structures(structure: Atoms, factor_lst: list) -> dict:
332
330
333
331
def add (x , y ):
334
332
sum = x + y
335
- if ( sum < 0 ). any () :
333
+ if sum < 0 :
336
334
exit_code = {"status" : 410 , "message" : "Some elements are negative" }
337
335
return {"sum" : sum , "exit_code" : exit_code }
338
336
return {"sum" : sum }
0 commit comments