Skip to content

[ENH] Add Mullay's scale of electronegativity#238

Merged
lmmentel merged 16 commits intomasterfrom
enh/mullay
May 7, 2025
Merged

[ENH] Add Mullay's scale of electronegativity#238
lmmentel merged 16 commits intomasterfrom
enh/mullay

Conversation

@lmmentel
Copy link
Copy Markdown
Owner

@lmmentel lmmentel commented May 6, 2025

  • add error trace print on exception
  • add mullays electronegativities

Fixes #

Proposed Changes

@lmmentel lmmentel requested a review from Copilot May 7, 2025 19:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Mullay's scale of electronegativity to the codebase by updating models and documentation, and enhances error handling by including exception details. Key changes include:

  • Adding the "en_mullay" attribute to both the Element model and its corresponding Alembic migration.
  • Updating documentation files (references.bib, electronegativity.rst, data.rst) to include information and a visual for Mullay's electronegativity.
  • Modifying error handling in utils.py to print exception details on SQLAlchemy errors.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
mendeleev/utils.py Updated exception handling to print error details
mendeleev/models.py Added the "en_mullay" attribute to the Element model
docs/source/references.bib Added bibliographic reference for Mullay's electronegativity
docs/source/electronegativity.rst Included new section and image for Mullay’s electronegativity
docs/source/data.rst Updated dataset table and notes to add "en_mullay"
alembic/versions/00d5e4e8fba1_add_mullay_electronegativity.py Introduced migration for adding the "en_mullay" column
CHANGES.rst Updated changelog with the new feature entry

@lmmentel lmmentel requested a review from Copilot May 7, 2025 19:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Mullay's electronegativity scale to the project and improves error reporting during SQLAlchemy exceptions.

  • Changes in mendeleev/models.py include the new column and documentation for Mullay’s scale.
  • Documentation updates in docs/source add the appropriate references, equations, and migration details for the new scale.
  • An updated exception handler in mendeleev/utils.py now prints exception details.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
mendeleev/utils.py Updated exception handler to print additional error details
mendeleev/models.py Added new en_mullay field in data model
docs/source/references.bib Added bibliographic reference for Mullay’s scale
docs/source/electronegativity.rst Included documentation and visualization for Mullay’s scale
docs/source/data.rst Updated data table to include Mullay’s scale
alembic/versions/00d5e4e8fba1_add_mullay_electronegativity.py Created migration for adding en_mullay column
CHANGES.rst Documented the new feature

@lmmentel lmmentel requested a review from Copilot May 7, 2025 19:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Mullay's electronegativity scale to the codebase. It updates the error trace printing in the database update function, modifies the Element model to include Mullay’s electronegativity, updates relevant fetching functions and documentation, and adds an Alembic migration for the new column.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
mendeleev/utils.py Updated exception block to print error details
mendeleev/models.py Added en_mullay column and electronegativity_mullay method
mendeleev/fetch.py Included Mullay's scale in data retrieval
docs/source/references.bib Added Mullay reference
docs/source/electronegativity.rst Updated documentation to include Mullay's scale
docs/source/data.rst Updated data table with Mullay's scale information
alembic/versions/00d5e4e8fba1_add_mullay_electronegativity.py Added migration script for Mullay's electronegativity column
CHANGES.rst Documented the enhancement in the changelog

@lmmentel lmmentel merged commit d0b713b into master May 7, 2025
20 checks passed
@lmmentel lmmentel deleted the enh/mullay branch May 7, 2025 20:12
@lmmentel lmmentel added enhancement New feature or request data Data update labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Data update enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants