Skip to content

Commit

Permalink
ignore unsolvable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Nov 25, 2023
1 parent 085501a commit e8632f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bean/preprocessing/data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def __getitem__(self, guide_idx):
def get_target_lengths(self, screen, target_col="target"):
target_len_list = []
screen.guides[target_col] = screen.guides[target_col].astype("category")
cur_item = screen.guides[target_col].cat.codes[0]
cur_item = screen.guides[target_col].cat.codes.iloc[0]
cur_len = 0
n_targets = 0
for i in screen.guides[target_col].cat.codes:
Expand Down
12 changes: 12 additions & 0 deletions bin/bean-run
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import sys
import logging
import warnings
from copy import deepcopy
from functools import partial
import numpy as np
Expand Down Expand Up @@ -58,6 +59,17 @@ DATACLASS_DICT = {
"MultiMixtureNormal+Acc": TilingSortingReporterScreenData,
}

warnings.filterwarnings(
"ignore",
category=FutureWarning,
message=r".*is_categorical_dtype is deprecated and will be removed in a future version.*",
)
warnings.filterwarnings(
"ignore",
category=FutureWarning,
message=r".*FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas.*",
)


def identify_model_guide(args):
if args.mode == "tiling":
Expand Down

0 comments on commit e8632f7

Please sign in to comment.