Skip to content

Commit 547413d

Browse files
committed
Simplify, document, rename the RATS frame to FastADT
1 parent 906e8bf commit 547413d

File tree

6 files changed

+264
-354
lines changed

6 files changed

+264
-354
lines changed

src/instamatic/_collections.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import logging
34
import string
45
from collections import UserDict
56
from typing import Any, Dict, Tuple
@@ -14,6 +15,13 @@ def __setitem__(self, key: Any, value: Any) -> None:
1415
super().__setitem__(key, value)
1516

1617

18+
class NullLogger(logging.Logger):
19+
def __init__(self, name='null'):
20+
super().__init__(name)
21+
self.addHandler(logging.NullHandler())
22+
self.propagate = False
23+
24+
1725
class PartialFormatter(string.Formatter):
1826
"""`str.format` alternative, allows for partial replacement of {fields}"""
1927

src/instamatic/experiments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
from .autocred import experiment as autocRED
44
from .cred import experiment as cRED
55
from .cred_tvips import experiment as cRED_tvips
6-
from .rats import experiment as rats
6+
from .fast_adt import experiment as fast_adt
77
from .red import experiment as RED
88
from .serialed import experiment as serialED
File renamed without changes.

0 commit comments

Comments
 (0)