Commit e1750612 authored by rna's avatar rna Committed by Andreas Schmidt

Add __repr__ call for PrrtCodingConfiguration.

parent a067f46c
Pipeline #1911 failed with stages
in 1 minute and 16 seconds
......@@ -98,6 +98,9 @@ cdef class PrrtCodingConfiguration:
if self._c_config != NULL:
cprrt.PrrtCodingParams_destroy(self._c_config)
def __repr__(self):
return "PrrtCodingConfiguration(n={},k={},n_cycle=[{}])".format(self.n, self.k, ",".join(map(str, self.n_cycle)))
cdef copy(self, cprrt.PrrtCodingParams* other):
cprrt.PrrtCodingParams_destroy(self._c_config)
self._c_config = other
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment