Project

General

Profile

Revision 860:b8b37868aea1

IDb8b37868aea1
Parent 859:c8c5be17ce26
Child 861:ecc9ec4205c6

Added by Maarten Sneep about 2 years ago

Use correct transformer attribute

View differences:

src/pycama/Reader.py
422 422
        d = data[...]
423 423
        d = np.where(d==fv, np.nan, d)
424 424
        try:
425
            if var.transformers:
425
            if var.transformer:
426 426
                if not is_sequence(var.transformer):
427 427
                    transformers = [var.transformer]
428 428
                else:
......
440 440
                    if t is not None:
441 441
                        d = t(d, None, *support_variables)
442 442
        except Exception as err:
443
            self.logger.warning("The transformation function for '{0}' failed".format(v.name))
443
            self.logger.warning("The transformation function for '{0}' failed".format(var.name))
444 444
            self.logger.warning(str(err))
445 445
            f.close()
446 446
            raise CAMAException("Error in transformation function {0}.".format(t.__class__.__name__))

Also available in: Unified diff