Skip to content

Commit c31d744

Browse files
committed
Remove unused misc.fmttime
1 parent b77cea4 commit c31d744

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

stagpy/misc.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ def baredoc(obj):
7070
return doc.rstrip(' .').lstrip()
7171

7272

73-
def fmttime(tin):
74-
"""Return LaTeX expression with time in scientific notation.
75-
76-
Args:
77-
tin (float): the time.
78-
Returns:
79-
str: the LaTeX expression.
80-
"""
81-
aaa, bbb = '{:.2e}'.format(tin).split('e')
82-
bbb = int(bbb)
83-
return r'$t={} \times 10^{{{}}}$'.format(aaa, bbb)
84-
85-
8673
def list_of_vars(arg_plot):
8774
"""Construct list of variables per plot.
8875

tests/test_misc.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ def test_baredoc():
2525
assert stagpy.misc.baredoc(test_baredoc) == expected
2626

2727

28-
def test_fmttime():
29-
expected = r'$t=1.00 \times 10^{-1}$'
30-
assert stagpy.misc.fmttime(0.1) == expected
31-
32-
3328
def test_list_of_vars():
3429
expected = [[['a', 'b'], ['c', 'd', 'e']], [['f', 'g'], ['h']]]
3530
assert stagpy.misc.list_of_vars('a,b..c,d,,,e-f,g.h-,..,-') == expected

0 commit comments

Comments
 (0)