Commit 3616e6df authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] get() -> getattr()

parent 48039fc6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ def main(args):
            fs=cfg.fs,
            preamble=cfg.preamble,
            postamble=cfg.postamble,
            add_low_level_random_noise=cfg.get("add_low_level_random_noise", False), 
            add_low_level_random_noise=getattr(cfg, "add_low_level_random_noise", False), 
            # TODO@VM dict.get() can provide a default value if the key is not found
            # please check if this is a viable solution - I kept getting "AttributeError: 'TestConfig' object has no attribute 'add_low_level_random_noise'"
        )