Added Stand table reading in utils
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
||||
import numpy as np
|
||||
import cristallina.utils as utils
|
||||
|
||||
from cristallina.utils import ROI, print_run_info, heuristic_extract_pgroup, gauss, find_nearest, xray_transmission
|
||||
from cristallina.utils import ROI, print_run_info, heuristic_extract_pgroup, gauss, find_nearest, xray_transmission,stand_table
|
||||
|
||||
|
||||
def test_print(capsys):
|
||||
@@ -47,4 +47,7 @@ def test_xray_transmission():
|
||||
T = xray_transmission(9000, 100e-6, material = 'Si')
|
||||
assert T == 0.342385039732607
|
||||
|
||||
|
||||
def test_stand_table():
|
||||
# Load run from a p-group where we have saved the stand table. First run recorded was number 27, so check that.
|
||||
table = stand_table(21563)
|
||||
assert table['run'][0] == 27
|
||||
Reference in New Issue
Block a user