Skip to content

Commit

Permalink
Updated name of window
Browse files Browse the repository at this point in the history
  • Loading branch information
vcalderon2009 committed Feb 23, 2018
1 parent 986e0f2 commit a05e8a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data/mocks_create_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ def file_construction_and_execution(params_pd_data, param_dict):
# Working directory
working_dir = os.path.abspath(os.path.dirname(__file__))
## Obtaining path to file
outfile_name = 'ECO_resolve_mocks_{0}_create_run.sh'.format(
param_dict['catl_type'])
outfile_name = 'ECO_resolve_mocks_{0}_{1}_create_run.sh'.format(
param_dict['catl_type'], param_dict['halotype'])
outfile_path = os.path.join(working_dir, outfile_name)
##
## Opening file
Expand All @@ -304,7 +304,7 @@ def file_construction_and_execution(params_pd_data, param_dict):
out_f.write( """## Last Edited: {0}\n\n""".format(now_str).encode())
out_f.write(b"""### --- Variables\n""")
out_f.write(b"""ENV_NAME="eco_mocks_catls"\n""")
out_f.write( """WINDOW_NAME="ECO_RESOLVE_Mocks_create_{0}"\n""".format(param_dict['halotype']).encode())
out_f.write( """WINDOW_NAME="ECO_RESOLVE_Mocks_create_{0}_{1}"\n""".format(param_dict['halotype'], param_dict['survey']).encode())
out_f.write( """WINDOW_CATL="data_{0}_{1}"\n""".format(param_dict['catl_type'], param_dict['cosmo_choice']).encode())
out_f.write(b"""# Home Directory\n""")
out_f.write(b"""home_dir=`eval echo "~$different_user"`\n""")
Expand Down

0 comments on commit a05e8a9

Please sign in to comment.