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

make yapf

parent 1cf61e88
No related branches found
No related tags found
1 merge request!27Refactor offline I/O
......@@ -57,8 +57,8 @@ class Branch:
def _initialise_keys(self):
"""Create the keymap and instance attributes for branch keys"""
# TODO: this could be a cached property
keys = set(k.decode('utf-8') for k in self._branch.keys()) - set(
self._mapper.exclude)
keys = set(k.decode('utf-8')
for k in self._branch.keys()) - set(self._mapper.exclude)
self._keymap = {
**{self._mapper.attrparser(k): k
for k in keys},
......
......@@ -3,6 +3,7 @@
import unittest
from km3io.tools import _to_num, cached_property
class TestToNum(unittest.TestCase):
def test_to_num(self):
self.assertEqual(10, _to_num("10"))
......
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