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

Python calculation error in ClusterOTU.sh #18

Open
cbird808 opened this issue Aug 9, 2019 · 1 comment
Open

Python calculation error in ClusterOTU.sh #18

cbird808 opened this issue Aug 9, 2019 · 1 comment

Comments

@cbird808
Copy link
Contributor

cbird808 commented Aug 9, 2019

this line
Z_PARAM=$(echo "$Z_PARAM" | python -c "print round(float(raw_input()))")
triggers this error
File "<string>", line 1 print round(float(raw_input())) ^ SyntaxError: invalid syntax

@cbird808
Copy link
Contributor Author

Proposed solution:

#Z_PARAM=$(echo "$Z_PARAM" | python -c "print round(float(raw_input()))")
#Z_PARAM=${Z_PARAM%.0}

Z_PARAM=$(printf "%.0f\n" $Z_PARAM)

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

1 participant