Skip to content

Commit

Permalink
Merge pull request FABLE-3DXRD#380 from jonwright/master
Browse files Browse the repository at this point in the history
suppress warnings for pytest on ubuntu with 3.12
  • Loading branch information
jonwright authored Jan 18, 2025
2 parents 7c9b16f + 662a8a4 commit 9090b3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ImageD11/columnfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def readfile(self, filename):
column_titles = raw[first_data_row - 1].replace("# ", "").lstrip(" ").split()
# print(f"Column titles are {column_titles}")

self._df = pd.read_csv(filename, skiprows=range(first_data_row), sep='\s+', header=None, names=column_titles)
self._df = pd.read_csv(filename, skiprows=range(first_data_row), sep=r'\s+', header=None, names=column_titles)

self.parameters.dumbtypecheck()
# self.set_attributes()
Expand Down
4 changes: 2 additions & 2 deletions ImageD11/sinograms/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
Step space:
+ve
/\
^
|
i |
|
-ve <-------- S (0, 0)--------> +ve
| j
|
|
\/
v
-ve
Expand Down
4 changes: 2 additions & 2 deletions test/testdatasets/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def testcase(dataroot = '/data/id11/nanoscope/ihmi1452/id11',
mfile = os.path.join( dataroot, sample, dsname, dsname+'.h5' )
if not os.path.exists( mfile ):
print( "Missing files", mfile )
return False
return # False
try:
result = ImageD11.sinograms.dataset.check( dataroot,
analysisroot,
Expand All @@ -38,7 +38,7 @@ def testcase(dataroot = '/data/id11/nanoscope/ihmi1452/id11',
finally:
print("Remove",destination)
os.unlink( destination )
return result
return # result



Expand Down

0 comments on commit 9090b3a

Please sign in to comment.