Open DCasoPTS opened 1 year ago
Are you trying to truncate your strings?
If you want to truncate strings, do so in Python, first. If you're trying to set a longer FORMAT length, it's probably a bug.
Are you trying to truncate your strings?
Not at all, I just want to handle the field length so that if for example I put the values ["ABC", "ABCD", "AB"] instead of being length = 4 (max length in the values), I can put a higher one. I know it's possible in the XPT files because I have seen examples where it happens (not created by Python).
If it's not working, that's a bug in thexport
module. It used to work. I'm not sure when I'll have time to look at it. Happy to have the help if you want to poke around.
If it's not working, that's a bug in the
xport
module. It used to work. I'm not sure when I'll have time to look at it. Happy to have the help if you want to poke around.
Going inside the package, I have found the issue, I was using v.length and it must be v.width I think it could help for others to include this in the documentation.
Thank you for your help, and for your quickly response.
I'd be happy to receive a pull request fixing the documentation.
I'm having an issue with the length, I want to set it to the number I want but it is always fixed to the max length of the values inside the field. I'm using a similar example to this:
v.length is doing nothing as I see in the result