Skip to content

Conversation

@kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented May 2, 2022

Description Of Changes

This PR adds a new attribute to the declarative syntax to indicate the plotting of an RGB image through a boolean setting. This preserves the check for 2D for all data, adds new check for if rgb_image is set to True and check to ensure it is 3D.

Open to suggestions on naming and description of attribute.

Checklist

@kgoebber kgoebber requested a review from a team as a code owner May 2, 2022 21:21
@kgoebber kgoebber requested review from dcamron and removed request for a team May 2, 2022 21:21
@dopplershift
Copy link
Member

Would it be better to avoid the flag and instead just allow 3D + last dimension size 3 or 4?

@kgoebber
Copy link
Collaborator Author

kgoebber commented May 3, 2022

Okay, I think I have a way to allow the 3D data without need of an extra attribute, which would be an extra pain. I think I modified the test that should cover the new behavior, but we'll see.

@kgoebber kgoebber force-pushed the rgb_image_declarative branch from 52ba53c to e0d9b09 Compare May 3, 2022 02:07
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Really just kicking back because of the error message change, but found a few other minor tweaks...

@kgoebber kgoebber force-pushed the rgb_image_declarative branch from e0d9b09 to 4d90e63 Compare May 4, 2022 01:05
@kgoebber kgoebber force-pushed the rgb_image_declarative branch from 4d90e63 to 2064648 Compare May 4, 2022 02:09
@dopplershift dopplershift merged commit 52c1b1b into Unidata:main May 4, 2022
@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Plots Pertains to producing plots labels May 4, 2022
@github-actions github-actions bot added this to the May 2022 milestone May 4, 2022
@dopplershift dopplershift added the backport Pull Requests that are automatically back-ported to the stable release label Jul 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2022

🏁 Successfully backported as #2569. 🏁

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

Labels

Area: Plots Pertains to producing plots backport Pull Requests that are automatically back-ported to the stable release Type: Bug Something is not working like it should

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plotting RGB Image with Declarative

2 participants