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

gridxp.py appends output at the bottom of the existing files #4

Open
mandiayba opened this issue Jan 11, 2019 · 4 comments
Open

gridxp.py appends output at the bottom of the existing files #4

mandiayba opened this issue Jan 11, 2019 · 4 comments

Comments

@mandiayba
Copy link
Member

When I re-run evaluate.xp with an existing old results (into the evaluate.txt files), the new results are added at the bottom of the evaluate.txt files, that causes aggregate.xp to consider the old results, not the new ones.

commands

  • "...gridxp.py --load-path xp evaluate.xp vector-size.xp"
  • "...gridxp.py --load-path xp aggregate.xp vector-size.xp"
@mandiayba mandiayba assigned mandiayba and rbossy and unassigned mandiayba Jan 11, 2019
@rbossy
Copy link
Member

rbossy commented Jan 11, 2019

If you mean the standard output and error. This is because of the Grid Engine. It always appends.

What we can do: delete output and error files before execution. But you might regret it. Or as an option?

@mandiayba
Copy link
Member Author

an option is a solution, yes.

otherwise, maybe adapt aggregate.xp to just collect only the latest results appended to evaluate.txt

@rbossy
Copy link
Member

rbossy commented Jan 17, 2019

A directive has been added at a595ceb:

delete_out(True)

Before running a command for a set of parameter values, it deletes the output and error files. Will not delete if dry run or updating.

There's a command-line option too: --delete-out

@rbossy rbossy changed the title evaluate.xp adds the new results at the bottom of the existing files gridxp.py appends output at the bottom of the existing files Jan 17, 2019
@rbossy
Copy link
Member

rbossy commented Jan 17, 2019

And documentation is updated since 029faea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants