Skip to content

Bugs in mtlkt.py #402

@gdefilippis

Description

@gdefilippis
  1. Lines 167 - 174 should be replaced by:
self.coldlak = [Util2d(model, (nlkinit,), np.float32, coldlak,
                             name='coldlak', locat=self.unit_number[0],
                             array_free_format=False)]

This is because you would get an error at line 190, saying that the method append cannot be used if self.coldlak is an Util2d object instead of a list.

  1. Line 227 should be replaced by:
for coldlak in self.coldlak:
    f_lkt.write(coldlak.get_file_entry())

This is because in the .lkt file you would get coldlak values for the first species only

  1. Line 446 should be replaced by:
for icomp in range(1, ncomp): 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions