Skip to content

Commit

Permalink
file, local not protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelizimm committed Dec 1, 2023
1 parent 2351ed3 commit faa475c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pins/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def board_deparse(board: BaseBoard):
return f"board_connect(server_url={repr(url)}{allow_pickle})"
elif prot in ["file", ("file", "local")]:
return f"board_folder({repr(board.board)}{allow_pickle})"
elif prot in ["s3", "s3a", ("s3", "s3a")]:
elif prot in [["s3", "s3a"], ("s3", "s3a")]:
return f"board_s3({repr(board.board)}{allow_pickle})"
elif prot == "abfs":
return f"board_azure({repr(board.board)}{allow_pickle})"
Expand Down
2 changes: 1 addition & 1 deletion pins/tests/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def construct_from_board(board):
prot = board.fs.protocol
fs_name = prot if isinstance(prot, str) else prot[0]

if fs_name == "file" or ("file", "protocol"):
if fs_name in ["file", ("file", "local")]:
board = c.board_folder(board.board)
elif fs_name == "rsc":
board = c.board_rsconnect(
Expand Down

0 comments on commit faa475c

Please sign in to comment.