Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • bilby bilby
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lscsoft
  • bilbybilby
  • Merge requests
  • !937

Add an option to use print rather than tqdm for dynesty

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Colm Talbot requested to merge dynesty-print into master Mar 25, 2021
  • Overview 8
  • Commits 6
  • Pipelines 6
  • Changes 2

Closes #543 (closed)

This is an initial attempt at making the output style a user-specifiable thing.

I implemented three options for print_method:

  • tqdm: the default and retains the current behaviour. This is particularly nice when using notebooks as tqdm is able to use widgets to make a nicer progress bar.
  • interval-TIME: this allows the user to specify how often to print the output to sys.stdout. This uses the print built-in. I'm open to using the logger as long as we make sure it gets piped to sys.stdout. The TIME is specified in seconds so interval-10` will print an update once every 10 seconds.
  • anything else will print to stdout using the print built-in every iteration.

We could use either the second or third in bilby_pipe/parallel_bilby as the expectation there is that stdout is a file, not a terminal.

I'm open to opinions.

Edited Jun 29, 2021 by Colm Talbot
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: dynesty-print