-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Correct melting and boiling points for Carbon allotropes (#214)
* correct db values and update PhaseTransition model * reduce number of rosw in test after removing diamond * update docs * add missing boiling point for red P * update melting_point and boiling_point to return either float or None * add tests for boiling and melting_points * update type annotations * simplify tests
- Loading branch information
Showing
6 changed files
with
138 additions
and
43 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
alembic/versions/88ac4b3cbd41_phase_transisions_extra_columns.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""phase transisions extra columns | ||
Revision ID: 88ac4b3cbd41 | ||
Revises: edad0a76e11e | ||
Create Date: 2024-12-22 15:42:17.215685 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '88ac4b3cbd41' | ||
down_revision = 'edad0a76e11e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column("phasetransitions", sa.Column("is_sublimation_point", sa.Boolean)) | ||
op.add_column("phasetransitions", sa.Column("is_transition", sa.Boolean)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table("phasetransitions") as batch_op: | ||
batch_op.drop_column("is_sublimation_point") | ||
batch_op.drop_column("is_transition") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.