Skip to content

Commit

Permalink
Micro-PR to add alt_atom_id to Biotite's internal CCD (#668)
Browse files Browse the repository at this point in the history
* feat: add alt_atom_id to biotite's internal CCD

* fix: remove accidental duplicate block

* chore: ruff format

* fix: move `alt_atom_id` block below `atom_id`
  • Loading branch information
Croydon-Brixton authored Oct 19, 2024
1 parent a384459 commit 3a7437d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions setup_ccd.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,22 @@ class ColumnInfo:
)
],
),
"alt_atom_id": ColumnInfo(
"U6",
[
StringArrayEncoding(
# The unique strings in the column are sorted
# -> Indices do not follow distinct pattern
data_encoding=[ByteArrayEncoding(type=TypeCode.INT16)],
offset_encoding=[
DeltaEncoding(src_type=TypeCode.INT32),
RunLengthEncoding(),
IntegerPackingEncoding(byte_count=1, is_unsigned=True),
ByteArrayEncoding(),
],
)
],
),
"type_symbol": ColumnInfo(
"U2",
[
Expand Down

0 comments on commit 3a7437d

Please sign in to comment.