Skip to content

Commit b26a756

Browse files
committed
debug cbf test 2
1 parent eaa9ad0 commit b26a756

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

GSASII/imports/G2img_CBF.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ def Reader(self,filename, ParentFrame=None, **unused):
3838
def GetCbfData(self,filename):
3939
'Read cif binary detector data cbf file'
4040

41-
import unpack_cbf as cbf
4241
print('CBF GetCbfData',filename)
42+
if GSASIIpath.binaryPath:
43+
import unpack_cbf as cbf
44+
else:
45+
from .. import unpack_cbf as cbf
4346
if GSASIIpath.GetConfigValue('debug'):
4447
print ('Reading cif binary detector data cbf file: '+filename)
4548
File = open(filename,'rb')

pixi/pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install-editable-win = { cmd = "pip install -ve . --no-build-isolation" , cwd='
3030
build-and-go ={ depends-on= ["install", "ui"]}
3131
build-and-go-win ={ depends-on= ["install-win", "ui"]}
3232

33-
test = {cmd = "python -m pytest ../" }
33+
test = {cmd = "python -m pytest ../tests/test_image.py" }
3434

3535
ui = 'GSASII_NOPATHHACKING="true" python -m GSASII'
3636

@@ -54,7 +54,7 @@ wheel = ">=0.45.1,<0.46"
5454
wxpython = ">=4.2.2,<5"
5555
pip = ">=24.3.1,<25"
5656
python-build = ">=1.2.2.post1,<2"
57-
zarr = "*"
57+
zarr = ">=2.18,<3.0"
5858
xmltodict = ">=0.14.2,<0.15"
5959
compilers = ">=1.8.0,<2"
6060
clang = ">=17.0.6,<20"

0 commit comments

Comments
 (0)