Commit b70b6f94 authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[contrasting project] remove annoying stdout from R

parent 60c57765
No related merge requests found
Showing with 8 additions and 1 deletion
+8 -1
import io
from contextlib import redirect_stdout
import numpy as np
import pandas as pd
import rpy2
......@@ -17,7 +20,11 @@ class AbstractResultFromExtremes(AbstractResultFromModelFit):
@property
def summary_name_to_value(self):
return self.get_python_dictionary(r('summary')(self.result_from_fit))
# Warning print will not work in this part
f = io.StringIO()
with redirect_stdout(f):
summary = r('summary')(self.result_from_fit)
return self.get_python_dictionary(summary)
@property
def results(self):
......
Supports Markdown
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