Skip to content

Commit df96e0b

Browse files
authored
doc string description for defaults/objects/simulation/utils sub-modules (#1005)
For all scripts within `defaults/objects/simulation/utils` sub-modules: + add a doc string at the top to describe its purpose + remove `#!` at the top from the remaining scripts (most scripts are already like that), since they are not needed.
1 parent c174dc8 commit df96e0b

38 files changed

+75
-49
lines changed

src/mintpy/defaults/auto_path.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
"""Utilities for automatic configuration fo input file pathes"""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #
45
# Author: Zhang Yunjun, Mar 2018 #
56
############################################################
6-
# recommended usage:
7+
# Recommended usage:
78
# from mintpy.defaults import auto_path
89

910

src/mintpy/defaults/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
"""Utilities to grab template content for processing steps."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #
45
# Author: Zhang Yunjun, Mar 2020 #
56
############################################################
6-
# recommend usage:
7+
# Recommend usage:
78
# from mintpy.defaults.template import STEP_LIST, get_template_content
8-
#
99

1010

1111
import os

src/mintpy/objects/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/usr/bin/env python3
1+
"""Class wrapped around Dask for parallel computing."""
22
#############################################################
33
# Program is part of MintPy #
44
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #
55
# Author: Joshua Zahner, David Grossman, Zhang Yunjun, 2020 #
66
#############################################################
77
# Recommend import:
8-
# from mintpy.objects import cluster
8+
# from mintpy.objects import cluster
99

1010

1111
import glob

src/mintpy/objects/colors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Class wrapped around matplotlib.colors for colormaps."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #

src/mintpy/objects/conncomp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Class / utilities for connected components."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #

src/mintpy/objects/coord.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Class for (radar/geo) coordinates conversion."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #

src/mintpy/objects/euler_pole.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Euler Pole class definition and utility functions."""
1+
"""Class / utilities for Euler Pole / plate motion (models)."""
22
############################################################
33
# Program is part of MintPy #
44
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #

src/mintpy/objects/giant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
"""Classes for HDF5/GIAnT file operations"""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #
45
# Author: Zhang Yunjun, 2018 #
56
############################################################
6-
# class used for file operation within MintPy
77
# Recommend import:
8-
# from mintpy.objects import giantTimeseries, giantIfgramStack
8+
# from mintpy.objects import giantTimeseries, giantIfgramStack
99

1010
import os
1111
from datetime import datetime as dt

src/mintpy/objects/gps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
"""Class / utilities for GPS download / operations."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #
45
# Author: Zhang Yunjun, Jul 2018 #
56
############################################################
6-
# Utility scripts for GPS handling
77
# Recommend import:
88
# from mintpy.objects.gps import GPS
99

src/mintpy/objects/insar_vs_gps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Class for comparing InSAR with GPS."""
12
############################################################
23
# Program is part of MintPy #
34
# Copyright (c) 2013, Zhang Yunjun, Heresh Fattahi #

0 commit comments

Comments
 (0)