Skip to content

Commit 5d0fc9c

Browse files
committed
doc: added tags to sections of script templates
1 parent ea08ebc commit 5d0fc9c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

hydrodiy/io/script_template_plot.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#importlib.reload(utils)
4242

4343
#----------------------------------------------------------------------
44-
# Config
44+
# @Config
4545
#----------------------------------------------------------------------
4646

4747
parser = argparse.ArgumentParser(\
@@ -81,7 +81,7 @@
8181
#proj = pyproj.Proj("+init=EPSG:{0}".format(args.projection))
8282
#
8383
#----------------------------------------------------------------------
84-
# Folders
84+
# @Folders
8585
#----------------------------------------------------------------------
8686
source_file = Path(__file__).resolve()
8787

@@ -91,13 +91,13 @@
9191
fimg = [FIMG]
9292

9393
#------------------------------------------------------------
94-
# Logging
94+
# @Logging
9595
#------------------------------------------------------------
9696
basename = source_file.stem
9797
LOGGER = iutils.get_logger(basename)
9898

9999
#------------------------------------------------------------
100-
# Get data
100+
# @Get data
101101
#------------------------------------------------------------
102102
#fd = "%s/data.csv" % FDATA
103103
#data, comment = csv.read_csv(fd)
@@ -108,7 +108,7 @@
108108
LOGGER.info(mess)
109109

110110
#------------------------------------------------------------
111-
# Plot
111+
# @Plot
112112
#------------------------------------------------------------
113113

114114
# To use multipage pdf

hydrodiy/io/script_template_simple.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#spec.loader.exec_module(foo)
2525

2626
#----------------------------------------------------------------------
27-
# Config
27+
# @Config
2828
#----------------------------------------------------------------------
2929
parser = argparse.ArgumentParser(\
3030
description="[DESCRIPTION]", \
@@ -59,7 +59,7 @@
5959
sitepattern = args.sitepattern
6060

6161
#----------------------------------------------------------------------
62-
# Folders
62+
# @Folders
6363
#----------------------------------------------------------------------
6464
source_file = Path(__file__).resolve()
6565
froot = [FROOT]
@@ -68,15 +68,15 @@
6868
fimg = [FIMG]
6969

7070
#----------------------------------------------------------------------
71-
# Logging
71+
# @Logging
7272
#----------------------------------------------------------------------
7373
basename = source_file.stem
7474
flog = froot / "logs" / f"{basename}.log"
7575
flog.parent.mkdir(exist_ok=True)
7676
LOGGER = iutils.get_logger(basename, console=False, contextual=True)
7777

7878
#----------------------------------------------------------------------
79-
# Get data
79+
# @Get data
8080
#----------------------------------------------------------------------
8181
fs = fdata / "sites.csv"
8282
allsites, _ = csv.read_csv(fs, index_col="siteid")
@@ -92,7 +92,7 @@
9292
sites = allsites.iloc[idx, :]
9393

9494
#----------------------------------------------------------------------
95-
# Process
95+
# @Process
9696
#----------------------------------------------------------------------
9797
nsites = len(sites)
9898
for isite, (siteid, sinfo) in enumerate(sites.iterrows()):

0 commit comments

Comments
 (0)