JustinGOSSES / wellio.js

JavaScript for converting well-log standard .las file format to json format
https://justingosses.github.io/wellio.js/
MIT License
34 stars 5 forks source link

Test Failure: las2json : test_v2_inf_api_leading_zero_value.js #23

Closed dcslagel closed 4 years ago

dcslagel commented 4 years ago

Current error is thrown when las2json is processing the test file assets/sample_2.0_inf_api_leading_zero.las

This test should verify that the api field value is treated as a string rather than a number so that if there is a leading zero it is not removed.

Error: /usr/local/devel/Apps/node-apps/wellio.js/dist/index.js:120
var unit = unit_and_data_str[0,5].trim();
TypeError: Cannot read property 'trim' of undefined

dcslagel commented 4 years ago

This test passes now that pull request #26 is merged.

DC