Skip to content
Snippets Groups Projects
Commit c5aff448 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix gallery example

parent 46a0e8a9
No related branches found
No related tags found
No related merge requests found
Pipeline #12986 passed with warnings
"""
How to use the Calculator
=========================
The following example shows how to use the `Calculator` class.
"""
from km3net_testdata import Calculator
#####################################################
# Initialising a Calculator
# -------------------------
# Initialising is a simple as this:
calc = Calculator()
#####################################################
# Adding numbers
# ~~~~~~~~~~~~~~
#
# You can add two numbers by calling the `.add(a, b)` method:
print(calc.add(5, 23))
"""
How to use the package
=======================
The following example shows how to use the `Calculator` class.
"""
from km3net_testdata import data_path
#####################################################
# Getting a filename
# ------------------
# To get the filename of a sample file:
filename = data_path("km3net_online.root")
print(filename)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment