Skip to content

Commit

Permalink
Fix pandas warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timodonnell committed Oct 18, 2023
1 parent f7a0d36 commit 08ae84e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mhcflurry/common.py
Expand Up @@ -79,7 +79,7 @@ def normalize_allele_name(

def configure_tensorflow(backend=None, gpu_device_nums=None, num_threads=None):
"""
Configure Keras backend to use GPU or CPU. Only tensorflow is supported.
Configure Keras backend to use GPU or CPU.
Parameters
----------
Expand Down Expand Up @@ -138,6 +138,7 @@ def configure_logging(verbose=False):
)



def amino_acid_distribution(peptides, smoothing=0.0):
"""
Compute the fraction of each amino acid across a collection of peptides.
Expand Down
2 changes: 1 addition & 1 deletion mhcflurry/flanking_encoding.py
Expand Up @@ -170,7 +170,7 @@ def encode(
side="left",
fillchar="X").str.slice(-n_flank_length).str.upper()
else:
n_flanks = pandas.Series([""] * len(df))
n_flanks = pandas.Series([""] * len(df), dtype=str)

c_flanks = df.c_flank.str.pad(
c_flank_length,
Expand Down

0 comments on commit 08ae84e

Please sign in to comment.