Jim Paris
d3efb829b5
Try to parse timestamps as double, if int64 parse fails
11 years ago
Jim Paris
90b96799ac
Bulk of the switch to int64 microsecond timestamps, including test data.
11 years ago
Jim Paris
b77f07a4cd
Fix reporting of parsing errors with malformed data
strtod() and friends will happily swallow newlines, so we need to skip
over spaces and look for that sort of thing manually.
11 years ago
Jim Paris
59f0076306
Increase max layout count in rocket
11 years ago
Jim Paris
83bc5bc775
Make rocket/bulkdata errors include column number and the bad data
The bad line is printed out on a new line, and a third line
with a ^ to indicate the position of the error.
11 years ago
Jim Paris
1c27dd72d6
Fill out client tests and fix various bugs
Fixes various corner cases and other bugs regarding lines with
comments, having data but no endpoints, etc.
11 years ago
Jim Paris
7abfdfbf3e
Add const qualifier to strings we get from Python
11 years ago
Jim Paris
0047e0360a
Implement Rocket.append_string() in C; misc cleanups along the way
This should more or less complete the rocket interface.
11 years ago
Jim Paris
84e21ff467
Move ASCII data parsing from the server to the rocket interface.
The server buffers the string and passes it to nilmdb. Nilmdb passes
the string to bulkdata. Bulkdata uses the rocket interface to parse
it in chunks, as necessary. Everything gets passed back up and
everyone is happy.
Currently, only pyrocket implements append_string.
11 years ago
Jim Paris
8a648c1b97
Move towards replacing bulkdata.File with rocket.Rocket
There isn't much left in File, so let's move as much as possible
over to C.
11 years ago
Jim Paris
0b75da7a8f
Normalize the floating point formats to %.6e and %.16e
This is mostly a matter of taste, but it matches more closely with the
old way that prep did it, and it's more consistent. It should roughly
match the available precision of floats and doubles.
11 years ago
Jim Paris
2dfc94b566
Remove old code
11 years ago
Jim Paris
e318888a06
Finish Rocket.extract_string; clean up code for other functions too
This is maybe 2.5-3 times faster than the list-based code, which
still isn't amazing, but is decent.
11 years ago
Jim Paris
7c95934cc2
Add rocket.extract_list; still not as complete as pyrocket
11 years ago
Jim Paris
96df9d8323
Starting the C version of rocket
Currently, only append_list is written (and hardly tested)
11 years ago