Randle Taylor
Randle Taylor
Here's a decorator that DOES suppress output: ```python # from https://stackoverflow.com/questions/11130156/suppress-stdout-stderr-print-from-python-functions class suppress_stdout_stderr(object): ''' A context manager for doing a "deep suppression" of stdout and stderr in Python, i.e. will...
Not yet, but I would be happy to work up a PR this week if @bletham is ok with using a context manager to (optionally) suppress output.
Actually, I don't know how the copyright/FB contributors agreement would work for this. I didn't write the code and AFAIK Stack Overflow snippets (prior to 2016) are licensed with CC...
That approach makes good sense to me. Thanks!
Just wanted to post an update to this. We are running Prophet in a long running process doing lots of forecasting and found we were running out of file descriptors...
@CrashLaker did you see my revised code which addresses running out of file descriptors here: https://github.com/facebook/prophet/issues/223#issuecomment-326455744
It's been a while, but it looks like I maybe had a similar issue because I implemented [getRealRho](https://github.com/clrp-code/egs_brachy/blob/master/egs_brachy/phantom.cpp#L261): ``` EGS_Float EB_Phantom::getRealRho(int ireg) { int med = geometry->medium(ireg); return geometry->getRelativeRho(ireg)*the_media->rho[med]; }...
Actually, we do use getMass in one spot so that will need to be updated in egs_brachy to account for the new behaviour.
@tbezo I didn't realize there was a feature request open for this. A while ago I added some experimental support for the PTW EPID QC here: https://github.com/qatrackplus/pylinac/blob/qat_2.5.0/pylinac/planar_imaging.py#L952 but it is...
Hi @MohammadSalehi72, the analysis is still being evaluated, but I do not have images I can share.