Skip to content

Commit 6fb05f9

Browse files
Merge branch 'v0.1.9' into derek/doc-enhance
2 parents abb66c7 + ec206bc commit 6fb05f9

4 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ name: build
55

66
on:
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

1317
jobs:

.github/workflows/pip-install.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: pip-install
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- v*.*.*
68
workflow_dispatch:
79

810

.github/workflows/pylint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: pylint
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- v*.*.*
68
workflow_dispatch:
79

810
jobs:

gnss_lib_py/parsers/navdata.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)