Update properties. Args: **kwargs: Key-value dict that contains all properties with their new values. Unknown properties are ignored.
(self, **kwargs)
| 88 | self.set(**kwargs) |
| 89 | |
| 90 | def set(self, **kwargs): |
| 91 | """Update properties. |
| 92 | |
| 93 | Args: |
| 94 | **kwargs: Key-value dict that contains all properties |
| 95 | with their new values. Unknown properties are ignored. |
| 96 | """ |
| 97 | for key in kwargs: |
| 98 | if ( |
| 99 | not key.startswith("_") |
| 100 | and hasattr(self, key) |
| 101 | and kwargs[key] is not None |
| 102 | ): |
| 103 | setattr(self, key, kwargs[key]) |
| 104 | |
| 105 | def __str__(self): |
| 106 | """Return a kaldi-style ``segments`` file (string).""" |
no outgoing calls
no test coverage detected