Skip to content

Commit

Permalink
extras
Browse files Browse the repository at this point in the history
  • Loading branch information
LucR31 committed Mar 4, 2024
1 parent 5c9fa99 commit 15c5a6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiida_flexpart/calculations/flexpart_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def define(cls, spec):
def prepare_for_submission(self, folder):

params = ['-m',self.inputs.input_dir.get_remote_path(),
'-r','./'
'-r','./','-p'
]
if 'input_offline_dir' in self.inputs:
params += ['-n',self.inputs.input_offline_dir.get_remote_path()]
Expand All @@ -50,6 +50,6 @@ def prepare_for_submission(self, folder):
# Prepare a `CalcInfo` to be returned to the engine
calcinfo = common.CalcInfo()
calcinfo.codes_info = [codeinfo]
calcinfo.retrieve_list = ['grid_time_*.nc', 'boundary_sensitivity_*.nc', 'aiida.out']
calcinfo.retrieve_list = ['grid_time_*.nc', 'boundary_sensitivity_*.nc','*.png', 'aiida.out']

return calcinfo
7 changes: 6 additions & 1 deletion aiida_flexpart/workflows/multi_dates_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def define(cls, spec):
spec.input('check_meteo_ifs_code', valid_type=orm.AbstractCode)
spec.input('post_processing_code', valid_type=orm.AbstractCode)

#extras
spec.input('name', valid_type=str, non_db=True, required=False)

# Basic Inputs
spec.input('simulation_dates',
valid_type=orm.List,
Expand Down Expand Up @@ -157,7 +160,9 @@ def setup(self):
self.ctx.outgrid = self.inputs.outgrid
self.ctx.species = self.inputs.species
self.ctx.land_use = self.inputs.land_use
#self.base.extras.set('this',3)
if 'name' in self.inputs:
self.node.base.extras.set(self.inputs.name,
{'command': self.ctx.command.get_dict()})

def prepare_meteo_folder_ifs(self):
"""prepare meteo folder"""
Expand Down

0 comments on commit 15c5a6f

Please sign in to comment.