Skip to content

Renaming query( ) function in the notebooks #1

Description

@ctroupin

Hello,

quick & easy suggestion: in the notebooks you create a function to generate the JSON query:

def query(parameter, mintemporal, maxtemporal, mindepth, maxdepth, minlon, maxlon, minlat, maxlat):
    body = {
        "query_parameters": [
    ...
    return body

and then you call the function

query = query(... )

which means query is not a function anymore but a dictionary, hence the function cannot be called again (or one needs to re-define the function). So renaming the function would avoid this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions