Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non numeric STNNBR causes ValueError in get_datafile_filename for ctd writer(s) #96

Open
DocOtak opened this issue Oct 15, 2014 · 0 comments
Labels
bug Something isn't working major

Comments

@DocOtak
Copy link
Member

DocOtak commented Oct 15, 2014

Original report by abarna (Bitbucket: abarna, GitHub: abarna).


The input file was the ctd exchange file from:
http://cchdo.ucsd.edu/cruise/49NZ20121128

A lovely traceback:

#!python

  File "/usr/local/cchdo/hydro-vm/src/libcchdo/scripts.py", line 2827, in main
    hydro_parser.exit(args.main(args))
  File "/usr/local/cchdo/hydro-vm/src/libcchdo/scripts.py", line 287, in any_to_type
    format.write(file, out_file)
  File "/usr/local/cchdo/hydro-vm/src/libcchdo/formats/ctd/zip/exchange.py", line 67, in write
    Zip.write(self, handle, ctdex, ctdex.get_datafile_filename)
  File "/usr/local/cchdo/hydro-vm/src/libcchdo/formats/zip.py", line 197, in write
    filename = get_filename(dfile)
  File "/usr/local/cchdo/hydro-vm/src/libcchdo/formats/ctd/exchange.py", line 59, in get_datafile_filename
    station = '%05d' % int(station)
ValueError: invalid literal for int() with base 10: 'C04'
@DocOtak DocOtak added major bug Something isn't working labels Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant