Skip to content

Commit

Permalink
minor changes and parser check for successful run
Browse files Browse the repository at this point in the history
  • Loading branch information
LucR31 committed Oct 19, 2023
1 parent 28a261c commit beedf56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions examples/example_cosmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def test_run(flexpart_code):
"""

# Prepare input parameters
user_name='lfernand'

command = orm.Dict(
dict=read_yaml_data('inputs/command.yaml'))
Expand All @@ -53,19 +54,19 @@ def test_run(flexpart_code):
'TEST_200']))

# Links to the remote files/folders.
glc = orm.RemoteData(remote_path='/users/lfernand/resources/flexpart/GLC2000',
glc = orm.RemoteData(remote_path=f'/users/{user_name}/resources/flexpart/GLC2000',
computer=flexpart_code.computer)
species = orm.RemoteData(
remote_path='/users/lfernand/resources/flexpart/SPECIES',
remote_path=f'/users/{user_name}/resources/flexpart/SPECIES',
computer=flexpart_code.computer)
surfdata = orm.RemoteData(
remote_path='/users/lfernand/resources/flexpart/surfdata.t',
remote_path=f'/users/{user_name}/resources/flexpart/surfdata.t',
computer=flexpart_code.computer)
surfdepo = orm.RemoteData(
remote_path='/users/lfernand/resources/flexpart/surfdepo.t',
remote_path=f'/users/{user_name}/resources/flexpart/surfdepo.t',
computer=flexpart_code.computer)
meteo_path = orm.RemoteData(
remote_path='/scratch/snx3000/lfernand/FLEXPART_input/cosmo7/',
remote_path=f'/scratch/snx3000/{user_name}/FLEXPART_input/cosmo7/',
computer=flexpart_code.computer)

# Set up calculation.
Expand Down Expand Up @@ -95,7 +96,7 @@ def test_run(flexpart_code):
builder.metadata.description = 'Test job submission with the aiida_flexpart plugin'
builder.metadata.options.stash = {
'source_list': ['aiida.out','partposit_inst', 'header', 'grid_time_*.nc'],
'target_base': '/store/empa/em05/lfernand/aiida_stash',
'target_base': f'/store/empa/em05/{user_name}/aiida_stash',
'stash_mode': StashMode.COPY.value,
}

Expand Down
2 changes: 1 addition & 1 deletion examples/inputs/command.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
simulation_direction: -1 # 1 for forward simulation, -1 for backward simulation.
simulation_date: '2021-12-02 00:00:00' # YYYY-MM-DD HH:MI:SS beginning date of simulation.
simulation_date: '2021-03-02 00:00:00' # YYYY-MM-DD HH:MI:SS beginning date of simulation.
age_class: 86400 # seconds
release_chunk: 10800 # seconds
release_duration: 86400 # seconds
Expand Down

0 comments on commit beedf56

Please sign in to comment.