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

Improve Colorbar for supporting numpy dtypes #1782

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

rodrigo-j-goncalves
Copy link
Contributor

@rodrigo-j-goncalves rodrigo-j-goncalves commented Oct 17, 2023

Worked with vis_params 'min' and 'max':

  • Accept types other than (int, float), for example numpy.float32. In deed, anything that can be converted to float is accepted (since the type requirement comes from numpy.linspace).
  • Improved error messages in case 'min', 'max' can not be converted to float.

See this discussion

rodrigo-j-goncalves and others added 2 commits October 17, 2023 11:58
Worked with vis_params 'min' and 'max':
- Accept types other than (int, float), for example numpy.float32. In deed, anything that can be converted to float is accepted.
- Improved error messages in case 'min', 'max' can not be converted to float.
@giswqs giswqs changed the title Update map_widgets.py Improve Colorbar for supporting numpy dtypes Oct 18, 2023
@giswqs
Copy link
Member

giswqs commented Oct 18, 2023

I have fixed the unit test errors. Thank you for your contribution.

@giswqs giswqs merged commit 9782032 into gee-community:master Oct 18, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants