Skip to content

Commit 785a8d3

Browse files
committed
fix: trailing white space and os separator
1 parent b3adb15 commit 785a8d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nibabel/gifti/gifti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def agg_data(self, intent_code=None):
731731
641.19586 , 638.7647 ],
732732
[ 612.9056 , 607.3228 , 606.1355 , ..., 608.2441 ,
733733
615.8239 , 613.0585 ],
734-
...,
734+
...,
735735
[ 101.28482 , 101.41192 , 99.21213 , ..., 100.47232 ,
736736
99.258316, 99.440796],
737737
[ 371.81592 , 367.02896 , 363.90207 , ..., 365.52597 ,
@@ -754,7 +754,7 @@ def agg_data(self, intent_code=None):
754754
641.19586 , 638.7647 ],
755755
[ 612.9056 , 607.3228 , 606.1355 , ..., 608.2441 ,
756756
615.8239 , 613.0585 ],
757-
...,
757+
...,
758758
[ 101.28482 , 101.41192 , 99.21213 , ..., 100.47232 ,
759759
99.258316, 99.440796],
760760
[ 371.81592 , 367.02896 , 363.90207 , ..., 365.52597 ,

nibabel/testing/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535

3636
def test_data(subdir=None, fname=None):
3737
if subdir is None:
38-
resource = 'tests/data'
38+
resource = os.path.join('tests', 'data')
3939
elif subdir in ('gifti', 'nicom', 'externals'):
40-
resource = '%s/tests/data' % subdir
40+
resource = os.path.join(subdir, 'tests', 'data')
4141
else:
4242
raise ValueError("Unknown test data directory: %s" % subdir)
4343

0 commit comments

Comments
 (0)