Closed fsoubelet closed 3 years ago
I would:
tfs.handler
etc. in the pastAbout the headers: I thought about what I think would make the most sense and then looked what you did. And it was exactly the same. So for me this looks fine.
I think this is ready for review now.
sphinx / napoleon
to nicely display the keyword arguments section, so the documentation build looks a bit weird :( Fixes welcome!Review away.
Tentatively, commit d9f4241 adds cpymad
as a test dependency only and adds a test that loads a TFS file written by tfs-pandas
(with an eol at eof) into a table in the MAD-X process to confirm these are accepted.
As of dc4fd58, testing the loading of a file written by tfs-pandas
with eol
at eof
into MAD-X
is complete.
The presence of the appropriate loaded table is tested, and the tests make use of pandas.testing.assert_series_equal
to allow for a small relative tolerance (which numpy.array_equal
does not allow) to test that the content of the loaded table is the proper one.
This is a draft for #56 as well as a small reorganization of the internal structure to be cleaner and closer to
pandas
. It is not breaking as functions are exported to top level.A
concat
function is also added and exported astfs.concat
and the following functions are overwritten from thepandas.DataFrame
:append
,join
andmerge
.Data manipulation is fully handled by the corresponding
pandas
functions.TO BE DONE