ldparser icon indicating copy to clipboard operation
ldparser copied to clipboard

MoTeC i2 failsto open written .ld files

Open poyoKRT opened this issue 3 years ago • 2 comments

Hi guys,

I am trying to use the parser to write .ld files and read them with MoTeC. Success to read a sample .ld file with ldData.fromfile('./tmp/test1.ld'), but once I write it back to .ld with write('./tmp/test2.ld') -process runs without python errors-, MoTeC is unable to open the file.

It can read the headers, image

...but this message is poping up when trying to open the data: image

I tried to downgrade to older version of MoTeC (1.1) but doesn´t work. The written file "test2.ld" can be parsed again with ldData.fromfile('./tmp/test2.ld')m but I can't make MoTeC to open it....

Does anybody succed to open a written .ld file on MoTeC? Thanks in advance.

poyoKRT avatar Jul 06 '22 11:07 poyoKRT

Hi, I never used Motec software, this means I also never checked if Motec would actually be able to read data written with this tool.. I also cannot say if anyone else was able to do this. So, I'm sorry to say, but I think if you need this feature, you'd have to get your hands dirty... I might look into this at some point, but currently I'm lacking the time ...

gotzl avatar Jul 08 '22 20:07 gotzl

Thanks for your answer Gotzl, I supposed so.... I started working on it, I will let you know if I get any further developmnet pointing to allow the pharser to encode for MoTeC.

poyoKRT avatar Jul 10 '22 08:07 poyoKRT

@poyoKRT can you solved the problem opened the files in Motec's software?

HOLOBUR avatar Feb 21 '23 13:02 HOLOBUR

@poyoKRT can you solved the problem opened the files in Motec's software?

Nope... are you in the same point...?

poyoKRT avatar Feb 28 '23 03:02 poyoKRT

I'm also trying to convert and write some data into .id files. Has anyone figured this out. What about the team that created Mu Telemetry, converting iRacing telemetry into MoTeC log files? This would be huge for other sim racing games. But I also haven't been able to figure out how to successfully write a .id file that will open in I2 Pro

BrokenHypocrite avatar Apr 07 '23 00:04 BrokenHypocrite

d the problem o

Yes, i'm trying to import from CSV files (from 3rd party loggers) into i2Pro (Motec) but i don't understand the motec files structure

HOLOBUR avatar Apr 07 '23 17:04 HOLOBUR

Hi, just came back to this.. With the latest fix, I'm able to write a file like this

# create test dataframe
df = pd.DataFrame(np.random.randn(100,4),columns=list('ABCD'))
# create an lddata object from the dataframe
l = ldData.frompd(df)
# write an .ld file
l.write('/tmp/test.ld')

and open it in i2 Pro .. How is it for you?

gotzl avatar Apr 10 '23 15:04 gotzl

Hi, just came back to this.. With the latest fix, I'm able to write a file like this

# create test dataframe
df = pd.DataFrame(np.random.randn(100,4),columns=list('ABCD'))
# create an lddata object from the dataframe
l = ldData.frompd(df)
# write an .ld file
l.write('/tmp/test.ld')

and open it in i2 Pro .. How is it for you?

oh, yes, very nice. I had just recently found a work around, but now I'll have to take a quick look to see what the fix was. Thanks for the message!

BrokenHypocrite avatar Apr 10 '23 20:04 BrokenHypocrite

Closing due to inactivity, and I think this should work now. Feel free to reopen.

gotzl avatar May 10 '23 18:05 gotzl