Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the function write_input_file of Astra class #25

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions astra/astra.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,15 @@ def write_input(self, input_filename=None, path=None, make_symlinks=True):
self.input['newrun']['distribution'] = fname

self.write_fieldmaps(path=path)

self.write_input_file(path=path, make_symlinks=make_symlinks)

def write_input_file(self, path=None, make_symlinks=True):
if path is None:
path = self.path
input_file = self.input_file
else:
input_file = os.path.join(path, 'astra.in')
input_file = os.path.join(path, self.original_input_file)

writers.write_namelists(self.input, input_file, make_symlinks=make_symlinks, verbose=self.verbose)

Expand Down