Summary
The write_model_UBC for TensorMesh and TreeMesh do not work properly for UBC-GIF active cells models. In SimPEG, active cells are a boolean array, which cannot be written directly. For UBC-GIF, they are binary values. Even if you convert the SimPEG boolean array to dtype=int, write_model_UBC will write the values in scientific notation.
Suggestion
Make write_active_cells_UBC and read_active_cells_UBC. I think its clearer to separate from write_model_UBC and read_model_UBC. However, I think we can get each to call a core piece of functionality smart enough to handle either.
Summary
The
write_model_UBCfor TensorMesh and TreeMesh do not work properly for UBC-GIF active cells models. In SimPEG, active cells are a boolean array, which cannot be written directly. For UBC-GIF, they are binary values. Even if you convert the SimPEG boolean array to dtype=int,write_model_UBCwill write the values in scientific notation.Suggestion
Make
write_active_cells_UBCandread_active_cells_UBC. I think its clearer to separate fromwrite_model_UBCandread_model_UBC. However, I think we can get each to call a core piece of functionality smart enough to handle either.