brendanarnold / py-fortranformat

MIT License
31 stars 7 forks source link

H format doesn't work #4

Closed brendanarnold closed 3 years ago

brendanarnold commented 3 years ago

Hi, I have some fortran code which emits dates using 'h' to emit the /, however I get..

In [4]: fmt = fortranformat.FortranRecordWriter('1x,i4,1h/,i2.2,1h/,i2.2,1x') ... InvalidFormat: 'Missing H descriptor number argument at position 7'

I edited _lexer.py to allow an NZUINT as well as UINT and it works.

brendanarnold commented 3 years ago

This has been fixed already