Skip to content

Commit d556c74

Browse files
committed
fix reading of nrstart and ncstart in CCP4 format
- close #57 - thanks to @Digp for excellent bug report with data and solution
1 parent 9ec502e commit d556c74

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The rules for this file:
2323
* Fixed reading in DX files containing scientific notation (PR #52)
2424
* Added missing floordivision to Grid (PR #53)
2525
* fix test on ARM (#51)
26+
* fix incorrect reading of ncstart and nrstart in CCP4 (#57)
2627

2728
Changes (do not affect user)
2829

gridData/CCP4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class CCP4(object):
177177
3: 'Transform of Complex Integer*2',
178178
4: 'Transform of Complex Reals',
179179
5: '0',
180-
}), Record('ncstart', 'I'), Record('nrstart', 'I'),
180+
}), Record('ncstart', 'i'), Record('nrstart', 'i'),
181181
Record('nsstart', 'I'), Record('nx', 'I'), # Number of gridpoints.
182182
Record('ny', 'I'), Record('nz', 'I'), Record('xlen', 'f'), # Angstroms.
183183
Record('ylen', 'f'), Record('zlen', 'f'), Record('alpha', 'f'), # Degrees.

0 commit comments

Comments
 (0)