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

Formatter instability: Instable call chain formatting #7462

Closed
MichaReiser opened this issue Sep 17, 2023 · 0 comments · Fixed by #7475
Closed

Formatter instability: Instable call chain formatting #7462

MichaReiser opened this issue Sep 17, 2023 · 0 comments · Fixed by #7475
Labels
bug Something isn't working formatter Related to the formatter

Comments

@MichaReiser
Copy link
Member

MichaReiser commented Sep 17, 2023

Input

if grid is not None:
    rgrid = (rgrid
                .rio.reproject_match(grid,
                                    nodata=fillvalue) # rio.reproject nodata is use to initlialize the destination array
                .where(~grid.isnull())
                )

Format 1

if grid is not None:
    rgrid = (
        rgrid.rio.reproject_match(
            grid, nodata=fillvalue
        ).where(  # rio.reproject nodata is use to initlialize the destination array
            ~grid.isnull()
        )
    )

Format 2

if grid is not None:
    rgrid = rgrid.rio.reproject_match(
        grid, nodata=fillvalue
    ).where(  # rio.reproject nodata is use to initlialize the destination array
        ~grid.isnull()
    )

Sourced by #7445

@MichaReiser MichaReiser added bug Something isn't working formatter Related to the formatter labels Sep 17, 2023
@MichaReiser MichaReiser added this to the Formatter: Beta milestone Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter Related to the formatter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant