Skip to content

Commit 4933e53

Browse files
committed
update classes
1 parent c0cb4ce commit 4933e53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

grid_plot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import sys
2727

28-
class FDGrid(object):
28+
class FDGrid:
2929
""" a 1-d finite-difference grid """
3030

3131
def __init__(self, nx, ng=0, xmin=0.0, xmax=1.0, voff=0.0):
@@ -144,7 +144,7 @@ def clean_axes(self, show_ghost=False, padding=True, ylim=None, pad_fac=1.0):
144144
plt.subplots_adjust(left=0.05, right=0.95, bottom=0.05, top=0.95)
145145

146146

147-
class FVGrid(object):
147+
class FVGrid:
148148
""" a 1-d finite-volume grid """
149149

150150
def __init__(self, nx, ng=0, xmin=0.0, xmax=1.0, voff=0.0):
@@ -334,7 +334,7 @@ def clean_axes(self, show_ghost=False, padding=True, ylim=None, pad_fac=0.5):
334334
plt.subplots_adjust(left=0.05,right=0.95,bottom=0.05,top=0.95)
335335

336336

337-
class CellCentered(object):
337+
class CellCentered:
338338
""" cell-centered data defined on a 1-d finite-volume grid """
339339

340340
def __init__(self, gr, a):
@@ -354,7 +354,7 @@ def draw_data_point(self, idx, color="0.5", marker="o"):
354354
color=color, marker=marker, zorder=100)
355355

356356

357-
class PiecewiseConstant(object):
357+
class PiecewiseConstant:
358358
""" piecewise constant data defined on a 1-d finite-volume grid """
359359

360360
def __init__(self, gr, a, scale=1.0):
@@ -598,7 +598,7 @@ def ppm_trace_left(self, idx, sigma, color="0.5"):
598598
plt.fill(xx, yy/self.scale, color=color, lw=1, zorder=-1)
599599

600600

601-
class Grid2d(object):
601+
class Grid2d:
602602
""" the base 2-d grid """
603603

604604
def __init__(self, nx, ny, ng = 0,

0 commit comments

Comments
 (0)