Skip to content

Commit

Permalink
format with ruff/black
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp75 committed Nov 4, 2024
1 parent 7915b0d commit 50699a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/python/cinterop/cinterop/cffi/marshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def as_c_double_array(
ffi: FFI, data: Union[List[float], np.ndarray], shallow: bool = False
) -> OwningCffiNativeHandle:
if isinstance(data, list):
data = np.asfarray(data)
data = np.asarray(data, dtype=float)
shallow = False
elif isinstance(data, xr.DataArray):
data = data.values
Expand Down
5 changes: 2 additions & 3 deletions bindings/python/cinteroppyb11/tests/test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import numpy as np
import cinteroppyb11 as c
import numpy as np

d = c.DateTimeToSecond()
c.test_date_time_to_second(d, 0.0,0,0,0,0,0)
c.test_date_time_to_second(d, 0.0, 0, 0, 0, 0, 0)

d = c.DateTimeToSecond()
d.year = 2000
Expand Down

0 comments on commit 50699a8

Please sign in to comment.