FAIRmat-NFDI / nomad-perovskite-solar-cells-database

A NOMAD plugin containing the schema for the Perovskite Solar Cell Database.
https://fairmat-nfdi.github.io/nomad-perovskite-solar-cells-database/
Apache License 2.0
3 stars 1 forks source link

Added scatter plot widget #38

Closed Pepe-Marquez closed 3 days ago

Pepe-Marquez commented 3 days ago

Summary by Sourcery

Add a scatter plot widget to the perovskite ions app for enhanced data visualization and refactor the widget configuration for better structure.

New Features:

Enhancements:

sourcery-ai[bot] commented 3 days ago

Reviewer's Guide by Sourcery

This PR adds a new scatter plot widget to the perovskite ions application. The implementation involves adding a YAML configuration for a scatter plot that displays the relationship between A cation molar mass and number of atoms, with points colored by structural type. The widget is configured with responsive layouts for different screen sizes.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Added a new scatter plot widget configuration
  • Configured scatter plot with A cation molar mass on y-axis and number of atoms on x-axis
  • Added color coding based on structural type
  • Set autorange and size parameters
  • Configured responsive layouts for xxl, xl, lg, md, and sm screen sizes
src/perovskite_solar_cell_database/apps/perovskite_ions_app.py
Reformatted existing periodic table widget configuration
  • Restructured YAML indentation for better readability
  • Renamed 'quantity' parameter to 'search_quantity'
src/perovskite_solar_cell_database/apps/perovskite_ions_app.py

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).