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

Replace BW and RGBCompositor with GenericCompositor #180

Merged
merged 25 commits into from Feb 10, 2018

Conversation

pnuu
Copy link
Member

@pnuu pnuu commented Feb 2, 2018

This PR replaces to existing compositors with a more generic one, and it makes it possible to create also LA and RGBA composites.

  • Tests added
  • Tests passed
  • Passes git diff origin/develop **/*py | flake8 --diff
  • Fully documented

@coveralls
Copy link

coveralls commented Feb 2, 2018

Coverage Status

Coverage increased (+0.02%) to 57.726% when pulling 0bd8ae5 on feature_generic_compositor into 907d75f on bugfixes-xarray.

@pnuu pnuu changed the base branch from maint/0.8 to develop February 8, 2018 20:14
@djhoese djhoese self-assigned this Feb 9, 2018
@djhoese djhoese added the enhancement code enhancements, features, improvements label Feb 9, 2018
@djhoese
Copy link
Member

djhoese commented Feb 9, 2018

I've been working on updating this for xarray and I've come up with a couple questions after comparing how @mraspaud updated the previous version of the RGBCompositor and how @pnuu did the GenericCompositor.

  1. When should wavelength, calibration, units, and modifiers get removed from the metadata? Only for modes that aren't "L" and "LA" mode? For all?
  2. @mraspaud had done some stuff with calculating the times/mid-time of the input datasets, but it looks like it modifies the metadata of the inputs which I'm not a fan of. @mraspaud what was the end goal of this functionality? Is the 'time' being modified a dimension/coordinate or a metadata attribute?

@djhoese djhoese changed the base branch from develop to bugfixes-xarray February 10, 2018 02:59
@djhoese
Copy link
Member

djhoese commented Feb 10, 2018

Ok so the commit history for all this got real messed up, but this should merge fine in to bugfixes-xarray. It includes the bug fixes that were merged to develop which is what I originally based my changes on. So...after we answer my questions and resolve the TODOs I added I think we can merge this.

@djhoese djhoese merged commit 6d4e6ae into bugfixes-xarray Feb 10, 2018
@djhoese djhoese deleted the feature_generic_compositor branch February 10, 2018 18:04
@djhoese djhoese changed the title Replace BW and RGBCompositor with a more generic one Replace BW and RGBCompositor with GenericCompositor Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants