Skip to content

Commit 45f93b0

Browse files
committed
moved options one level up; update import statement
this is to ensure that all enumerators are visible to src.pybella.utils.user_data
1 parent 9658149 commit 45f93b0

File tree

9 files changed

+16
-8
lines changed

9 files changed

+16
-8
lines changed

src/pybella/data_assimilation/letkf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import matplotlib.pyplot as plt
1313

14-
from ..flow_solver.utils import options as opts
14+
from ..utils import options as opts
1515
from . import utils
1616

1717
debug_cnt = 0

src/pybella/data_assimilation/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
import matplotlib.pyplot as plt
77

8-
from ..flow_solver.utils import options as opts, boundary as bdry
8+
from ..utils import options as opts
9+
10+
from ..flow_solver.utils import boundary as bdry
911

1012

1113
class ensemble(object):

src/pybella/flow_solver/discretisation/grid.py

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

3-
from ..utils import options as opts
3+
from ...utils import options as opts
44

55

66
def grid_init(ud):

src/pybella/flow_solver/discretisation/time_update.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33

44
import numpy as np
55

6+
from ...utils import options as opts
7+
68
# dependencies of the flow solver subpackage
79
from . import grid as dis_grid
8-
from ..utils import boundary as bdry, options as opts
10+
from ..utils import boundary as bdry
911
from ..physics.gas_dynamics import (
1012
numerical_flux as gd_flux,
1113
eos as gd_eos,

src/pybella/flow_solver/physics/gas_dynamics/recovery.py

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

3-
from ...utils import options as opts, variable as var
3+
from ....utils import options as opts
4+
5+
from ...utils import variable as var
46

57

68
def do(Sol, flux, lmbda, ud, th, elem, split_step, tag):

src/pybella/flow_solver/physics/low_mach/laplacian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import scipy as sp
33
import numba as nb
44

5-
from ...utils import options as opts
5+
from ....utils import options as opts
66

77

88
def stencil_9pt(elem, node, mpv, Sol, ud, diag_inv, dt, coriolis_params):

src/pybella/flow_solver/physics/low_mach/second_projection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import numpy as np
55
import scipy as sp
66

7-
from ...utils import options as opts, boundary as bdry
7+
from ....utils import options as opts
8+
9+
from ...utils import boundary as bdry
810
from . import laplacian as lm_lp
911

1012

src/pybella/flow_solver/utils/boundary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
import copy
55
import numpy as np
6-
from . import options as opts
6+
from ...utils import options as opts
77
from ...utils import io
88

99

File renamed without changes.

0 commit comments

Comments
 (0)