Skip to content

Commit

Permalink
minor edit on class names
Browse files Browse the repository at this point in the history
  • Loading branch information
cuill committed Oct 12, 2023
1 parent 9638daa commit f5fa0c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def BinA(A, B):
return [np.logical_not(np.ma.getmask(result)), np.ma.getmask(result)]


class SourceSinkIn():
class SourceSinkIn:
""" class for *.prop or other similar formats"""
def __init__(self, filename=None, number_of_groups=2, ele_groups=[]):
self.n_group = number_of_groups # 0: source; 1: sink
Expand Down Expand Up @@ -72,7 +72,7 @@ def get_ele(self, pval):
"""return ele id with specified prop value"""


class source_sink():
class source_sink:
"""class for handling all source/sink inputs"""
def __init__(self, source_dir=None, start_time_str='2000-01-01 00:00:00', timedeltas=[0.0, 86400.0*365],
source_eles=[], sink_eles=[], vsource_data=None, vsink_data=None):
Expand Down
2 changes: 1 addition & 1 deletion pyschism/forcing/source_sink/sflux2source/TimeHistory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def running_mean(X, N):
return (cumsum[N:] - cumsum[:-N]) / float(N)


class TimeHistory():
class TimeHistory:


"""Class for manipulating *.th"""
Expand Down

0 comments on commit f5fa0c2

Please sign in to comment.