Skip to content

Commit 51f1ec3

Browse files
committed
fixup! FEAT: implemented sas7bdat adapter using Pandas
1 parent 7068e94 commit 51f1ec3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

larray_editor/arrayadapter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,8 +3707,9 @@ def get_values(self, h_start, v_start, h_stop, v_stop):
37073707
reader = self.data
37083708
current_row = reader._current_row_in_file_index
37093709
if current_row > v_start:
3710-
logger.debug(f"must reset reader")
3711-
# reset reader to the beginning by closing it and re-initializing it
3710+
logger.debug("must reset Pandas SAS7BDATReader")
3711+
# reset reader to the beginning of the file by closing it and
3712+
# re-initializing it
37123713
fpath = reader.handles.handle.name
37133714
kwargs = dict(
37143715
index=reader.index,
@@ -3762,7 +3763,7 @@ def open(cls, fpath):
37623763

37633764

37643765
@path_adapter_for('.sas7bdat')
3765-
def dispatch_parquet_path_adapter(fpath):
3766+
def dispatch_sas7bdat_path_adapter(fpath):
37663767
# the pandas adapter is first as it (much) faster for reading the first
37673768
# lines of large files. In practice, Pandas is always available
37683769
# because it is currently a hard dependency of larray-editor

0 commit comments

Comments
 (0)