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

Make black

parent 2c351607
No related branches found
No related tags found
No related merge requests found
Pipeline #49276 passed with warnings
......@@ -22,9 +22,11 @@ from pkg_resources import get_distribution
# -- Project information -----------------------------------------------------
try:
from importlib.metadata import version as get_version
version = get_version("km3io")
except ImportError:
from pkg_resources import get_distribution
version = get_distribution("km3io").version
short_version = ".".join(version.split(".")[:2])
......
......@@ -8,6 +8,7 @@ written by aanet software.
Note: the offline file used here has MC offline data and was intentionaly reduced
to 10 events.
"""
import km3io as ki
from km3net_testdata import data_path
......
......@@ -6,6 +6,7 @@ The following example shows how to access tracks data in an offline ROOT file.
Note: the offline files used here were intentionaly reduced to 10 events.
"""
import km3io as ki
from km3net_testdata import data_path
......
......@@ -7,6 +7,7 @@ like a dictionary and returns ``lazyarray``, compatible to the ``numpy.array``
interface. The available keys can be accessed either as attributes or via a
dictionary lookup:
"""
import km3io as ki
from km3net_testdata import data_path
......
......@@ -8,6 +8,7 @@ from the detector and written by the `JDataWriter` application.
Such a file is usually called "KM3NET_00000001_00000002.root", where the first
number is the detector ID and the second the run number.
"""
import km3io as ki
from km3net_testdata import data_path
......
try:
from importlib.metadata import version as get_version
version = get_version(__name__)
except ImportError:
from pkg_resources import get_distribution
version = get_distribution(__name__).version
......
......@@ -41,6 +41,7 @@ tentatively dealt with.
WARNING: data should be in general expected as ordered but may not be contiguous
in time.
"""
import numpy as np
......
......@@ -261,7 +261,7 @@ class EventReader:
data = {}
for k in keys:
data[k] = _event[k]
for (k, i) in zip(nested_keys, nested_items):
for k, i in zip(nested_keys, nested_items):
data[k] = i
for tokey, fromkey in self.nested_aliases.items():
data[tokey] = data[fromkey]
......
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