Skip to content

Commit 704bc64

Browse files
renamed 2d to be compatible with main
1 parent fa5e053 commit 704bc64

6 files changed

+10
-10
lines changed

src/fluidsf/calculate_advection.py renamed to src/fluidsf/calculate_advection_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22

33

4-
def calculate_advection( # noqa: D417
4+
def calculate_advection_2d( # noqa: D417
55
u,
66
v,
77
x=None,

src/fluidsf/calculate_structure_function.py renamed to src/fluidsf/calculate_structure_function_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .shift_array_2d import shift_array_2d
44

55

6-
def calculate_structure_function( # noqa: D417, C901
6+
def calculate_structure_function_2d( # noqa: D417, C901
77
u,
88
v,
99
adv_x,

src/fluidsf/generate_structure_functions.py renamed to src/fluidsf/generate_structure_functions_2d.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import numpy as np
22

33
from .bin_data import bin_data
4-
from .calculate_advection import calculate_advection
4+
from .calculate_advection_2d import calculate_advection_2d
55
from .calculate_separation_distances import calculate_separation_distances
6-
from .calculate_structure_function import (
7-
calculate_structure_function,
6+
from .calculate_structure_function_2d import (
7+
calculate_structure_function_2d,
88
)
99
from .shift_array_1d import shift_array_1d
1010

1111

12-
def generate_structure_functions( # noqa: C901, D417
12+
def generate_structure_functions_2d( # noqa: C901, D417
1313
u,
1414
v,
1515
x=None,
@@ -195,7 +195,7 @@ def generate_structure_functions( # noqa: C901, D417
195195
if "ASF_V" in sf_type:
196196
SF_adv_x = np.zeros(len(sep_x) + 1)
197197
SF_adv_y = np.zeros(len(sep_y) + 1)
198-
adv_x, adv_y = calculate_advection(
198+
adv_x, adv_y = calculate_advection_2d(
199199
u,
200200
v,
201201
x,
@@ -211,7 +211,7 @@ def generate_structure_functions( # noqa: C901, D417
211211
if "ASF_S" in sf_type:
212212
SF_x_scalar = np.zeros(len(sep_x) + 1)
213213
SF_y_scalar = np.zeros(len(sep_y) + 1)
214-
adv_scalar = calculate_advection(
214+
adv_scalar = calculate_advection_2d(
215215
u, v, x, y, lats, lons, dx, dy, grid_type, scalar, sphere_circumference
216216
)
217217
if "LL" in sf_type:
@@ -243,7 +243,7 @@ def generate_structure_functions( # noqa: C901, D417
243243
else:
244244
xroll = shift_array_1d(x, shift_by=x_shift, boundary=None)
245245

246-
SF_dicts = calculate_structure_function(
246+
SF_dicts = calculate_structure_function_2d(
247247
u,
248248
v,
249249
adv_x,
@@ -301,7 +301,7 @@ def generate_structure_functions( # noqa: C901, D417
301301
else:
302302
yroll = shift_array_1d(y, shift_by=y_shift, boundary=None)
303303

304-
SF_dicts = calculate_structure_function(
304+
SF_dicts = calculate_structure_function_2d(
305305
u,
306306
v,
307307
adv_x,

0 commit comments

Comments
 (0)