generated from neutrons/python_project_template
-
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
Bing Li
committed
Aug 27, 2024
1 parent
854fa9d
commit fd1aec3
Showing
6 changed files
with
210 additions
and
95 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
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
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
# -*- coding: utf-8 -* | ||
import h5py | ||
|
||
from tavi.data.tavi import TAVI | ||
|
||
|
||
def test_new_tavi_file(): | ||
tavi = TAVI() | ||
tavi_file_name = "./test_data/tavi_test.h5" | ||
tavi.new_tavi_file(tavi_file_name) | ||
|
||
with h5py.File(tavi_file_name, "r") as f: | ||
keys = f.keys() | ||
|
||
assert keys[1] == "processed_data" |