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

jgrss/v170 issues #69

Merged
merged 14 commits into from
Sep 16, 2023
Merged

jgrss/v170 issues #69

merged 14 commits into from
Sep 16, 2023

Conversation

jgrss
Copy link
Owner

@jgrss jgrss commented Apr 16, 2023

From PR #64:

@jgrss jgrss self-assigned this Apr 16, 2023
* format

* remove attr

* add grid attr check

* pin upper lightning

* change

* change

* format

* docs: Update README.md (#62)

minor update to install of pyenv

* make the default resolution None

* fix the bounds setting

---------

Co-authored-by: Michael Mann <mmann1123@gmail.com>
@jgrss jgrss added the bug Something isn't working label Apr 16, 2023
@jgrss jgrss requested a review from nnguyen622 May 2, 2023 23:40
@jgrss jgrss marked this pull request as ready for review May 3, 2023 04:35
Comment on lines +52 to +57
if rechunk:
src = src.chunk(
chunks={
'band': -1,
'y': new_row_chunks,
'x': new_col_chunks,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice! This adds another check when running inference on small images 👍

Comment on lines -277 to +278
ref_res: T.Optional[float] = 10.0,
ref_res: T.Optional[T.Union[float, T.Tuple[float, float]]] = 10.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so here you also accept tuples of values?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nnguyen622 the default cell size is now None (see the commit in args.yml). This change allows the resolution to be gathered from the image (e.g., in case the user doesn't know the exact cell size). If taken from the image, and in cases of non-square pixels, tuples are allowed.

@@ -85,7 +85,7 @@ shared_create:
long: res
help: The cell resolution
kwargs:
default: 10.0
default: !!null
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the default here is unchanged by the user, the cell resolution will be taken directly from the image.

@@ -739,7 +739,14 @@ def create_datasets(args):
)

total_iters = len(
list(itertools.product(inputs.year_lists, inputs.regions_lists))
list(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This chunk fixes the broken progress bar.

@jgrss jgrss merged commit 05d2c1a into main Sep 16, 2023
1 check passed
@jgrss jgrss deleted the jgrss/v170_issues branch September 16, 2023 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants