-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6b81da
commit 993bb35
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pathlib import Path | ||
|
||
from dlisio import dlis | ||
|
||
from wellbelog.belodlis.functions import unpack_physical_dlis, open_dlis_file | ||
|
||
folder_path = Path(__file__).parent.parent / 'test_files' | ||
file_path = folder_path / '1PIR1AL_conv_ccl_canhoneio.dlis' | ||
|
||
|
||
def test_open_dlis_file(): | ||
physical_file = open_dlis_file(file_path) | ||
assert isinstance(physical_file, dlis.PhysicalFile) | ||
logical_files = unpack_physical_dlis(physical_file) | ||
assert isinstance(logical_files, list) | ||
assert len(logical_files) > 0 | ||
assert isinstance(logical_files[0], dlis.LogicalFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters