src.inout.model_io

Classes

ModelIO()

class src.inout.model_io.ModelIO
Author:

Alberto M. Esmoris Pena

Class with util static methods for input/output operations related to models.

static read(path)

Read a model file.

Parameters:

path (str) – Path to the model file.

Returns:

Instance of Model (or corresponding derived class).

Return type:

src.model.model.Model

static write(model, path)

Write a model to a file.

Parameters:
  • model (Model) – The model to be written.

  • path (str) – Path where the model file must be written.

Returns:

Nothing.