File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,13 @@ name: build
55
66on :
77 push :
8- branches : [ main ]
8+ branches :
9+ - main
10+ - v*.*.*
911 pull_request :
10- branches : [ main ]
12+ branches :
13+ - main
14+ - v*.*.*
1115 workflow_dispatch :
1216
1317jobs :
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: pip-install
22
33on :
44 pull_request :
5- branches : [ main ]
5+ branches :
6+ - main
7+ - v*.*.*
68 workflow_dispatch :
79
810
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: pylint
22
33on :
44 pull_request :
5- branches : [ main ]
5+ branches :
6+ - main
7+ - v*.*.*
68 workflow_dispatch :
79
810jobs :
Original file line number Diff line number Diff line change @@ -1056,6 +1056,14 @@ def __next__(self):
10561056 return x_curr
10571057
10581058 def __str__ (self ):
1059+ """Creates string representation of NavData object
1060+
1061+ Returns
1062+ -------
1063+ str_out : str
1064+ String representation of Navdata object, based on equivalent
1065+ Pandas string
1066+ """
10591067 str_out = str (self .pandas_df ())
10601068 str_out = str_out .replace ("DataFrame" ,"NavData" )
10611069 str_out = str_out .replace ("Columns" ,"Rows" )
@@ -1065,6 +1073,21 @@ def __str__(self):
10651073 str_out )
10661074 return str_out
10671075
1076+ def __repr__ (self ): # pragma: no cover
1077+ """Evaluated string representation of Navdata object
1078+
1079+ For NavData objects, this is similar to the str method and is
1080+ defined separately to avoid having to add a `print` method
1081+ before each display command in Jupyter notebooks
1082+
1083+ Returns
1084+ -------
1085+ rep_out : str
1086+ Evaluated string representation object
1087+ """
1088+ rep_out = str (self )
1089+ return rep_out
1090+
10681091 def __len__ (self ):
10691092 """Return length of class
10701093
You can’t perform that action at this time.
0 commit comments