@@ -625,7 +625,7 @@ Using the ``COPY`` mode, the target path defines another location (on the same f
625
625
' stash' : {
626
626
' source_list' : [' aiida.out' , ' output.txt' ],
627
627
' target_base' : ' /storage/project/stash_folder' ,
628
- ' stash_mode' : StashMode.COPY,
628
+ ' stash_mode' : StashMode.COPY.value ,
629
629
}
630
630
}
631
631
}
@@ -649,7 +649,7 @@ To avoid this scenario, you can instead, stash via a separate calculation job, f
649
649
.. code-block:: python
650
650
651
651
from aiida.common.datastructures import StashMode
652
- from aiida.orm import load_node
652
+ from aiida.orm import load_node, load_computer
653
653
654
654
StashCalculation = CalculationFactory(' core.stash' )
655
655
@@ -658,12 +658,12 @@ To avoid this scenario, you can instead, stash via a separate calculation job, f
658
658
659
659
inputs = {
660
660
' metadata' : {
661
- ' computer' : Computer.collection.get (label="localhost"),
661
+ ' computer' : load_computer (label="localhost"),
662
662
' options' : {
663
663
' stash' : {
664
664
' source_list' : [' aiida.out' , ' output.txt' ],
665
665
' target_base' : ' /scratch/' ,
666
- ' stash_mode' : StashMode.COPY,
666
+ ' stash_mode' : StashMode.COPY.value ,
667
667
},
668
668
},
669
669
},
0 commit comments