Added Stand table reading in utils

This commit is contained in:
2023-11-13 15:14:51 +01:00
parent 6b58d30f76
commit 97f683b73c
2 changed files with 23 additions and 2 deletions

View File

@@ -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