UBC-MDS / software-review-2023

DSCI 524
0 stars 0 forks source link

Group 17 - colourpycker (Python) #27

Open shaunhutch opened 1 year ago

shaunhutch commented 1 year ago

Submitting Author: Shaun Hutchinson (@shaunhutch), Lauren Zung (@lzung), Alex Taciuk (@ataciuk), Arjun Radhakrishnan (@rkrishnan-arjun) All current maintainers: (@shaunhutch, @lzung, @ataciuk, @rkrishnan-arjun) Package Name: xolourpycker One-Line Description of Package: A package to extract a colour palette from an image for data visualization. Repository Link: https://github.com/UBC-MDS/colourpycker Version submitted: v2.0.0 Editor: @flor14
Reviewers: Jakob Thoms, Suraporn Puangpanbut, Chester Wang, Ritisha Sharma Archive: TBD
Version accepted: TBD Date accepted (month/day/year): TBD


Description

This package allows users to integrate unique colour palettes into their graphs for exploratory data analysis. The colours are retrieved from image data (via URL) and are selected based on their overall prominence in a picture. While there are existing tools that are used to process images and create figures independently, we aim to combine both of their functionalities to help programmers easily design effective and creative visualizations.

Scope

Please fill out a pre-submission inquiry before submitting a data visualization package. For more info, see notes on categories of our guidebook.

Technical checks

For details about the pyOpenSci packaging requirements, see our packaging guide. Confirm each of the following by checking the box. This package:

Publication options

JOSS Checks - [ ] The package has an **obvious research application** according to JOSS's definition in their [submission requirements][JossSubmissionRequirements]. Be aware that completing the pyOpenSci review process **does not** guarantee acceptance to JOSS. Be sure to read their submission requirements (linked above) if you are interested in submitting to JOSS. - [ ] The package is not a "minor utility" as defined by JOSS's [submission requirements][JossSubmissionRequirements]: "Minor ‘utility’ packages, including ‘thin’ API clients, are not acceptable." pyOpenSci welcomes these packages under "Data Retrieval", but JOSS has slightly different criteria. - [ ] The package contains a `paper.md` matching [JOSS's requirements][JossPaperRequirements] with a high-level description in the package root or in `inst/`. - [ ] The package is deposited in a long-term repository with the DOI: *Note: Do not submit your package separately to JOSS*

Are you OK with Reviewers Submitting Issues and/or pull requests to your Repo Directly?

This option will allow reviewers to open smaller issues that can then be linked to PR's rather than submitting a more dense text based review. It will also allow you to demonstrate addressing the issue via PR links.

Code of conduct

Please fill out our survey

P.S. *Have feedback/comments about our review process? Leave a comment here

Editor and Review Templates

The editor template can be found here.

The review template can be found here.

Suraporn commented 1 year ago

Package Review

Please check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide

Documentation

The package includes all the following forms of documentation:

Readme file requirements The package meets the readme requirements below:

The README should include, from top to bottom:

NOTE: If the README has many more badges, you might want to consider using a table for badges: see this example. Such a table should be more wide than high. (Note that the a badge for pyOpenSci peer-review will be provided upon acceptance.)

Usability

Reviewers are encouraged to submit suggestions (or pull requests) that will improve the usability of the package as a whole. Package structure should follow general community best-practices. In general please consider whether:

Functionality

For packages also submitting to JOSS

Note: Be sure to check this carefully, as JOSS's submission requirements and scope differ from pyOpenSci's in terms of what types of packages are accepted.

The package contains a paper.md matching JOSS's requirements with:

Final approval (post-review)

Estimated hours spent reviewing: 1 Hr.


Review Comments

First of all, congratulations on creating such an interesting package, I really like the idea of the package that solves color template of the presentation problem, I personally got this problem before, and will definitely use this wonderful package!

  1. I did install your package using pip install colourpycker worked well and it worked well on my M1 laptop.
  2. Your package passed all tests with pytest tests/ --cov=colourpycker. Now, the test coverage is 82%, you might try to check more with pytest --cov-report term-missing --cov=colourpycker tests/ and write more tests to have better test coverage.
  3. All four functions, get_color_palette, donut, scatterplot, negative, are well-written and well-documented with docstring, and I was able to pull the docstring with ?function_name to see the document when I need it.
  4. As follow the examples in the usage section on the README.md, I got an error running scatterplot function as below. I think it is because I do not have penguins data on my session yet. I recommend putting a line importing an example data before running this example, so users can run the example without any problem .

`--------------------------------------------------------------------------- NameError Traceback (most recent call last) Cell In[8], line 1 ----> 1 scatterplot('https://i.imgur.com/s9egWBB.jpg', penguins, 'bill_length_mm', 'body_mass_g', 'species', 50)

NameError: name 'penguins' is not defined`

  1. Even with scatterplot function that we can pass our template picture, and our data, this function then returns the plot of our data with a specific color template of the picture, yet, the type of plot in this function is still limited, it should be a good idea if we can have more flexibility choosing plot type based on types in our data. Or we can have another function that creates a color map from the picture and we can use this color map later with other visualization libraries such as Altair, Seaborn, Matplotlib, Pandas, etc ..

Finally, thank you again for creating this interesting package, I am glad to review your wonderful package.

ritisha2000 commented 1 year ago

Package Review

Please check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide

Documentation

The package includes all the following forms of documentation:

Readme file requirements The package meets the readme requirements below:

The README should include, from top to bottom:

NOTE: If the README has many more badges, you might want to consider using a table for badges: see this example. Such a table should be more wide than high. (Note that the a badge for pyOpenSci peer-review will be provided upon acceptance.)

Usability

Reviewers are encouraged to submit suggestions (or pull requests) that will improve the usability of the package as a whole. Package structure should follow general community best-practices. In general please consider whether:

Functionality

For packages also submitting to JOSS

Note: Be sure to check this carefully, as JOSS's submission requirements and scope differ from pyOpenSci's in terms of what types of packages are accepted.

The package contains a paper.md matching JOSS's requirements with:

Final approval (post-review)

Estimated hours spent reviewing: 1 hour

Review Comments

  1. The project idea is great and it is executed well. There is a lot of use for this package and the documentation shows the other packages that are available and what they lack that is provided by colorpicker.
  2. I was able to install the package by following the installation instructions. In the usage it might be nice to specify that the penguins dataset needs to be loaded otherwise it gives an error.
  3. I did not see a style checker in the ci GitHub actions. It might nice to add the command with flake8 so you can make sure the source code follows the appropriate style guidelines.
  4. The cd in Github actions seems to be skipped.
  5. All the functions are documented well. You could consider adding examples to the docstring for the functions: check_param_validity and rgb_to_hex.

Overall, the project is really great. Great job!

ChesterAiGo commented 1 year ago

Package Review

Please check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide

Documentation

The package includes all the following forms of documentation:

Readme file requirements The package meets the readme requirements below:

The README should include, from top to bottom:

NOTE: If the README has many more badges, you might want to consider using a table for badges: see this example. Such a table should be more wide than high. (Note that the a badge for pyOpenSci peer-review will be provided upon acceptance.)

Usability

Reviewers are encouraged to submit suggestions (or pull requests) that will improve the usability of the package as a whole. Package structure should follow general community best-practices. In general please consider whether:

Functionality

For packages also submitting to JOSS

Note: Be sure to check this carefully, as JOSS's submission requirements and scope differ from pyOpenSci's in terms of what types of packages are accepted.

The package contains a paper.md matching JOSS's requirements with:

Final approval (post-review)

Estimated hours spent reviewing: 1 hour


Review Comments

  1. I find the idea of this package to be interesting and practical. There are indeed scenarios where user might want to perform EDA on image data in specific, and this package would certainly be helpful in such a situation.
  2. The package is installable and I was able to use part of the functions. Most of the codes are well-documented and reviewers and easily understand. Nice work!
  3. Having that said, I did notice a few parts where the code was hard-coded. It would be nice if the developers can replace those parts with parameters for more unrestricted usage.
  4. The functions are written in a defensive manner which is nice. It would be even better if the developers could consider write more private functions and call them in the public functions for better structure.
  5. It seems like the test coverage is only 82% and it would be nice to either have more tests to cover all branches or explain why it is unnecessary to test those branches.

In general I enjoyed using the package and the reviewing process. Nice work!