seismo-learn / seismology101

Tutorials for absolute beginners in Seismology
https://seismo-learn.org/seismology101/
64 stars 18 forks source link

Fix the code to print all events in a catalog #603

Closed seisman closed 1 year ago

seisman commented 1 year ago

There are two different ways to print all events in a catalog:

  1. print(cat.__str__(print_all=True))
  2. for event in cat:
       print(event)

ObsPy recommends the first option, but I don't like due to the following two reasons:

  1. As shown in the screenshot below, the first option doesn't display well in the side note (a missing bracket at the end). image
  2. The first option is not easy to remember, and the second option is much easier to understand and remember.
github-actions[bot] commented 1 year ago

This comment was written by the Continuous Documentation bot!