rs-station / careless

Merge X-ray diffraction data with Wilson's priors, variational inference, and metadata
MIT License
16 stars 6 forks source link

suppress tqdm(-like) output #97

Closed DHekstra closed 1 year ago

DHekstra commented 1 year ago

I pipe the output from Careless (stdout and stderr) to log files. 99.999% of these consist of waitbar/per-iteration updates. Can we suppress those?

kmdalton commented 1 year ago

Are you asking me to implement a flag to suppress the progress bar? I don't think most users will want to do away with the progress bar, because it is helpful. So do you want the option to disable it?

The code does use tqdm under the hood. My understanding is this should only print to stderr. So, you should be able to redirect stdout without this issue.

DHekstra commented 1 year ago

Yes, that looks good.