We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Relevant here: https://github.com/mundialis/grass-gis-helpers/blob/main/src/grass_gis_helpers/cleanup.py#L27
From stackoverflow:
Sometimes it seems natural to have a default parameter which is an empty list. However, Python produces unexpected behavior in these situations.
Use
def general_cleanup( rm_rasters=None, rm_vectors=None, rm_files=None, rm_dirs=None, rm_groups=None, rm_groups_wo_rasters=None, rm_regions=None, rm_strds=None, orig_region=None, rm_mask=False, ):
instead and add tests if the arguments are not None and a list.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Relevant here: https://github.com/mundialis/grass-gis-helpers/blob/main/src/grass_gis_helpers/cleanup.py#L27
From stackoverflow:
Sometimes it seems natural to have a default parameter which is an empty list. However, Python produces unexpected behavior in these situations.
Use
instead and add tests if the arguments are not None and a list.
The text was updated successfully, but these errors were encountered: