Skip to content

Commit

Permalink
all tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlKCarlK committed Jan 1, 2024
1 parent 5cc2655 commit dcde21e
Show file tree
Hide file tree
Showing 2 changed files with 664 additions and 1,592 deletions.
5 changes: 4 additions & 1 deletion bed_reader/_open_bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,17 @@ class open_bed:
def __init__(
self,
location: Union[str, Path, UrlParseResult],
# cmk must also accept old value
iid_count: Optional[int] = None,
sid_count: Optional[int] = None,
properties: Mapping[str, List[Any]] = {},
count_A1: bool = True,
num_threads: Optional[int] = None,
skip_format_check: bool = False,
fam_location: Union[str, Path, UrlParseResult] = None,
# cmk must also accept old value
bim_location: Union[str, Path, UrlParseResult] = None,
# cmk must also accept old value
):
# cmk need to read the .fam and .bim files and check file from cloud if requested
self.location = self._path_or_url(location)
Expand Down Expand Up @@ -426,7 +429,7 @@ def read(
self._sid_range[sid_index_or_slice_etc], dtype="intp"
)

if not force_python_only:
if not force_python_only or open_bed._is_url(self.location):
num_threads = get_num_threads(
self._num_threads if num_threads is None else num_threads
)
Expand Down
Loading

0 comments on commit dcde21e

Please sign in to comment.