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 save_unweighted_flag by removing the leading '#' in the first line #69

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

flomlo
Copy link
Contributor

@flomlo flomlo commented Apr 2, 2021

Currently the first line of a saved unweighted flag reads '# dim 0' whereas flagser strictly expects 'dim 0'.

What does this implement/fix? Explain your changes.

Adding the comments='' paramenter to np.save fixes this. This is done analogously to save_weighted_flag

Any other comments?

We did not observe this error before as load_unweighted_flag ignores the first line and does not strictly check if it is dim 0.
One could "fix" that as well?

Copy link
Contributor

@ulupo ulupo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a linting suggestion here! Otherwise LGTM

@giotto-ai giotto-ai deleted a comment from azure-pipelines bot Apr 26, 2021
Co-authored-by: Umberto Lupo <46537483+ulupo@users.noreply.github.com>
@flomlo
Copy link
Contributor Author

flomlo commented Apr 29, 2021

I hope I pressed the right buttons to accept the suggested linting changes :)

@ulupo ulupo merged commit 39f40a4 into giotto-ai:master Apr 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants