Skip to content

Commit 615a7cf

Browse files
authored
v0.2.4 (#56)
1 parent 985dbaf commit 615a7cf

18 files changed

+543
-284
lines changed

biopandas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2525
#
2626

27-
__version__ = '0.2.4.dev0'
27+
__version__ = '0.2.4'
2828
__author__ = "Sebastian Raschka <[email protected]>"

biopandas/pdb/pandas_pdb.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
from .engines import pdb_df_columns
2121
from .engines import amino3to1dict
2222
import warnings
23+
from distutils.version import LooseVersion
24+
25+
26+
pd_version = LooseVersion(pd.__version__)
2327

2428

2529
class PandasPdb(object):
@@ -516,16 +520,22 @@ def to_pdb(self, path, records=None, gz=False, append_newline=True):
516520
else:
517521
dfs[r]['OUT'] = dfs[r]['OUT'] + dfs[r][c]
518522

519-
df = pd.concat(dfs)
520-
if pd.__version__ < '0.17.0':
523+
if pd_version < LooseVersion('0.17.0'):
521524
warn("You are using an old pandas version (< 0.17)"
522525
" that relies on the old sorting syntax."
523526
" Please consider updating your pandas"
524527
" installation to a more recent version.",
525528
DeprecationWarning)
526529
df.sort(columns='line_idx', inplace=True)
530+
531+
elif pd_version < LooseVersion('0.23.0'):
532+
df = pd.concat(dfs)
533+
527534
else:
528-
df.sort_values(by='line_idx', inplace=True)
535+
df = pd.concat(dfs, sort=False)
536+
537+
df.sort_values(by='line_idx', inplace=True)
538+
529539
with openf(path, w_mode) as f:
530540

531541
s = df['OUT'].tolist()

docs/mkdocs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ docs_dir: sources
1111

1212
site_favicon: favicon.ico
1313

14-
theme_dir: cinder
14+
theme:
15+
name: null
16+
custom_dir: "./cinder"
1517

1618
markdown_extensions:
17-
- extra
1819
- tables
1920
- fenced_code
20-
- mathjax
21+
- mdx_math:
22+
enable_dollar_delimiter: True #for use of inline $..$
2123
extra_javascript:
2224
- https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
2325
- mathjaxhelper.js

docs/sources/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The CHANGELOG for the current development version is available at
44
[https://github.com/rasbt/biopandas/blob/master/docs/sources/CHANGELOG.md](https://github.com/rasbt/biopandas/blob/master/docs/sources/CHANGELOG.md).
55

6-
### 0.2.4 (TBD)
6+
### 0.2.4 (02-05-2019)
77

88
##### Downloads
99

@@ -16,7 +16,7 @@ The CHANGELOG for the current development version is available at
1616

1717
##### Changes
1818

19-
- -
19+
- Minor adjustments to support to address deprecation warnings in pandas >= 23.0
2020

2121
##### Bug Fixes
2222

docs/sources/api_subpackages/biopandas.mol2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
biopandas version: 0.2.3dev0
1+
biopandas version: 0.2.4
22
## PandasMol2
33

44
*PandasMol2()*

docs/sources/api_subpackages/biopandas.pdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
biopandas version: 0.2.3dev0
1+
biopandas version: 0.2.4
22
## PandasPdb
33

44
*PandasPdb()*

docs/sources/api_subpackages/biopandas.testutils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
biopandas version: 0.2.3dev0
1+
biopandas version: 0.2.4
22
## assert_raises
33

44
*assert_raises(exception_type, message, func, *args, **kwargs)*

docs/sources/tutorials/Working_with_MOL2_Structures_in_DataFrames.ipynb

Lines changed: 112 additions & 105 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)