PyRCS
latest

Documentation

  • Installation
  • Sub-packages and modules
    • Sub-packages
      • line_data
        • elr_mileage
        • elec
        • loc_id
        • lor_code
        • line_name
        • trk_diagr
        • bridge
      • other_assets
        • sig_box
        • tunnel
        • viaduct
        • station
        • depot
        • feature
    • Modules
      • parser
        • Preprocess contents
        • Extract information
      • converter
        • Convert mileage data
        • Convert other data
      • collector
        • LineData
        • OtherAssets
      • utils
        • Validate inputs
        • Print messages
        • Save and retrieve pre-packed data
  • License
  • Use of data
  • Acknowledgement

Quick start

  • Tutorial
    • Location identifiers
      • Location identifiers given a specific initial letter
      • All available location identifiers
    • ELRs and mileages
      • Engineer’s Line References (ELRs)
      • Mileage file of a given ELR
    • Railway station data
      • Railway station locations given a specific initial letter
      • All available railway station locations
PyRCS
  • Sub-packages and modules
  • utils
  • print_inst_conn_err

print_inst_conn_err

pyrcs.utils.print_inst_conn_err(update=False, verbose=False, e=None)

Print a message about unsuccessful attempts to establish a connection to the Internet (for an instance of a class).

Parameters:
  • update (bool) – mostly complies with update in a parent function that uses this function, defaults to False

  • verbose (bool or int) – whether to print relevant information in console, defaults to False

  • e (Exception or None) – error message

Example:

>>> from pyrcs.utils import print_inst_conn_err

>>> print_inst_conn_err(verbose=True)
The Internet connection is not available.
Previous Next

© Copyright 2019-2023, Qian Fu. Revision 24eed9f0.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
Downloads
pdf
On Read the Docs
Project Home
Builds