Ondrej Certik wrote:
On Feb 8, 2008 3:28 PM, Robert Cimrman cimr...@ntc.zcu.cz wrote:
Ondrej Certik wrote:
I need to finish one arcticle first, so I'll get to sfepy later today. Good, it gave me time to make some changes :) Now the *MeshIO.write() methods work, though the medit one is not finished. But tests pass.
So I'll adapt my classes to the sfe/fem/meshio.py. And then refactor it into sfe/mesh/io dir, because this file is already getting big and it will get much bigger.
I have thought of another thing: use the io classes as plugins = collect them automatically in some specified directory. This directory should be outside of the sources in sfe/, similar to what the 'eldesc' directory is. Of course the basic io classes should be included in the sources as they are already (obviously I am here for the two that are already done: medit and vtk + your favorites). In this way, adding/testing new io classes would be really simple - just add the file into some ioplugins directory.
Anyway the refactoring into 'a file per io class' is useful.
r.