-
Notifications
You must be signed in to change notification settings - Fork 167
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
Modifications to i.image.bathymetry to return original functionality #321
base: grass8
Are you sure you want to change the base?
Conversation
…according to manual
#predict = g.read_command("g.tempfile", pid=os.getpid()).strip() + '.txt' | ||
#replace dynamic variable of predict with a static filename until g.tempfile formatting | ||
#is cross platform | ||
predict="bathytemp.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we use tempfile library to get a temporary name? something like os.path.join(tempfile.gettempdir(), os.getpid()).strip() + '.txt') should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or something like:
https://grass.osgeo.org/grass76/manuals/libpython/script.html#script.core.tempname
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, maybe better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better refer to at least "stable", i.e.
https://grass.osgeo.org/grass78/manuals/libpython/script.html#script.core.tempname
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems good, I suggest only a small change
This will restore the previous options for adaptive and bisquare kernel as described in the manual page.