Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ build: false

environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
- PYTHON_VERSION: 3.5
- PYTHON_VERSION: 3.9
MINICONDA: C:\Miniconda3

init:
Expand Down
6 changes: 3 additions & 3 deletions biopandas/pdb/pandas_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ def _get_calpha(df, invert):

@staticmethod
def _get_carbon(df, invert):
"""Return c-alpha atom entries from a DataFrame"""
"""Return carbon atom entries from a DataFrame"""
if invert:
return df[df['element_symbol'] == 'C']
else:
return df[df['element_symbol'] != 'C']
else:
return df[df['element_symbol'] == 'C']

@staticmethod
def _construct_df(pdb_lines):
Expand Down
2 changes: 1 addition & 1 deletion biopandas/pdb/tests/test_read_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ def test_get_df():
assert shape == (1330, 21), shape

shape = ppdb.get('carbon', records=('ATOM',)).shape
assert shape == (473, 21), shape
assert shape == (857, 21), shape
4 changes: 2 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The CHANGELOG for the current development version is available at

##### Bug Fixes

- Fixes a bug where coordinates with more than 4 digits before the decimal point caused a column shift when saving a PDB file. (via PR [90](https://github.com/rasbt/biopandas/pull/90/files)

- Fixes a bug where coordinates with more than 4 digits before the decimal point caused a column shift when saving a PDB file. (via PR #[90](https://github.com/rasbt/biopandas/pull/90/files))
- Fixes a bug where the invert parameter in get_carbon was selecting the wrong case. (via PR #[96](https://github.com/rasbt/biopandas/pull/96/files))

### 0.2.9 (08-30-2021)

Expand Down