From f5fa0c26b518632414e033fe3d78d46bb75d891d Mon Sep 17 00:00:00 2001 From: cuill Date: Thu, 12 Oct 2023 11:09:52 -0400 Subject: [PATCH] minor edit on class names --- pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py | 4 ++-- pyschism/forcing/source_sink/sflux2source/TimeHistory.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py b/pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py index cf11331a..869b7100 100644 --- a/pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py +++ b/pyschism/forcing/source_sink/sflux2source/SourceSinkIn.py @@ -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 @@ -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): diff --git a/pyschism/forcing/source_sink/sflux2source/TimeHistory.py b/pyschism/forcing/source_sink/sflux2source/TimeHistory.py index aa9f4f93..6fe7e729 100644 --- a/pyschism/forcing/source_sink/sflux2source/TimeHistory.py +++ b/pyschism/forcing/source_sink/sflux2source/TimeHistory.py @@ -23,7 +23,7 @@ def running_mean(X, N): return (cumsum[N:] - cumsum[:-N]) / float(N) -class TimeHistory(): +class TimeHistory: """Class for manipulating *.th"""