e15190.runlog.downloader.ElogDownloader

class e15190.runlog.downloader.ElogDownloader

Functions

__init__()

Initialize the ElogDownloader.

download([download_path, verbose, timeout, ...])

Downloads the runlog from the webpage.

Properties

DOWNLOAD_PATH

URL

__init__()

Initialize the ElogDownloader.

The Elog is viewable at http://neutronstar.physics.wmich.edu/runlog/index.php?op=list

download(download_path=None, verbose=True, timeout=3, read_nbytes=None)

Downloads the runlog from the webpage.

Parameters
  • download_path (str, default None) – File path to the Excel file. If None, the file is saved at $DATABASE_DIR/runlog/downloads/elog.html.

  • verbose (bool, default True) – Whether to print the progress of downloading.

  • timeout (int, default 3) – Timeout in seconds for the request.

  • read_nbytes (int, default None) – Number of bytes to read from the webpage. If None, the entire webpage is read, decoded, and saved. This is useful for testing.

Returns

download_path – Path to the downloaded HTML file.

Return type

pathlib.Path