Skip to content

Commit 8cebfb8

Browse files
committed
Fix linting errors
1 parent 00993d8 commit 8cebfb8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

testing/test_lweiss.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Based on a bug report supplied by Laren Weiss
77
'''
88

9+
910
@pytest.mark.skipif(True, reason='Out of date API')
1011
def test_application(args):
1112
setup = args

testing/test_python_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import ttvfast
44

5+
56
def check_against_output_file(results):
67
'''
78
Function to check the output of `ttvfast` with the example output file
@@ -25,6 +26,7 @@ def check_against_output_file(results):
2526

2627
assert i == 374
2728

29+
2830
def test_python_call(stellar_mass, planets, python_args):
2931
Time, dt, Total = python_args
3032
results = ttvfast.ttvfast(planets, stellar_mass, Time, dt, Total)

ttvfast/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
"Fast TTV computation"
44

5-
6-
__all__ = ['ttvfast']
7-
8-
95
from collections import namedtuple
106
import numpy as np
117
from ._ttvfast import _ttvfast as _ttvfast_fn
128
from . import models
139

10+
__all__ = ['ttvfast']
11+
1412
TTVFastResult = namedtuple('TTVFastResult', [
1513
'planets', 'epochs', 'times', 'rsky', 'vsky', 'rv',
1614
])
@@ -34,7 +32,8 @@ def ttvfast(planets, stellar_mass, time, dt, total, rv_times=None):
3432
input_flag = 0
3533

3634
len_rv = len(rv_times) if rv_times is not None else 0
37-
positions, rv = _ttvfast_fn(params, dt, time, total, n_plan, input_flag, len_rv, rv_times)
35+
positions, rv = _ttvfast_fn(params, dt, time, total, n_plan,
36+
input_flag, len_rv, rv_times)
3837

3938
return TTVFastResult(
4039
planets=np.array(positions[0]),

0 commit comments

Comments
 (0)