2021-06-28 11:49:18 +02:00
|
|
|
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
|
|
|
# SPDX-FileCopyrightText: Copyright (c) 2021 Arofarn
|
|
|
|
#
|
2021-06-28 12:52:08 +02:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2021-06-28 13:50:17 +02:00
|
|
|
import umetpy.constants as mpconsts
|
2021-06-28 12:52:08 +02:00
|
|
|
|
|
|
|
# pylint: disable=eval-used
|
|
|
|
print("List of all constants:\n")
|
2021-06-28 13:50:17 +02:00
|
|
|
for cst in dir(mpconsts):
|
2021-06-28 12:52:08 +02:00
|
|
|
if cst[0] != "_":
|
2021-06-28 13:50:17 +02:00
|
|
|
print("{:30s} = {:.12f}".format(cst, eval("{}.{}".format("mpconsts", cst))))
|