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

drop_artifacts in old_format_output not passed as input variable #75

Open
adriangutierrezg opened this issue May 31, 2023 · 3 comments
Open

Comments

@adriangutierrezg
Copy link
Contributor

Dear Johannes,

I realized that the input variable drop_artifacts in the main() function of /combinato/tools/old_format_output (line 91) is not passed on as an actual argument:

Line 91:
def main(fname_data, fname_sorting, sign, outfname, drop_artifacts=False)

Line 101:
joined = man.get_groups_joined()

https://github.com/jniediek/combinato/blob/6973ca113300130c5e8e37830267df5043be03f5/tools/old_format_output.py#LL101C24-L101C24

effectively passing line 101 joined = man.get_groups_joined() with artifacts=True on every call.

A possible fix would be something of the sort:

if drop_artifacts: 
    joined = man.get_groups_joined(artifacts=False)
else:
    joined = man.get_groups_joined(artifacts=True)

am I maybe missing something? What do you think?
Thanks!
Adrian.

@adriangutierrezg adriangutierrezg changed the title drop_artifacts in write-old-output.py not passed as input variable drop_artifacts in old_format_output not passed as input variable May 31, 2023
@jniediek
Copy link
Owner

Hi Adrian,
You are right, and I think your fix is exactly the right one. Would you be able to create a pull request with the fix?
Cheers
Johannes

@jniediek
Copy link
Owner

That's fixed now, right?

@adriangutierrezg
Copy link
Contributor Author

It is, thanks!

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

No branches or pull requests

2 participants