Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation class attrs #123

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
convert the parse_vectorlist to a staticmethod
  • Loading branch information
scottstanie committed Jun 28, 2023
commit 37f0b8ca287a6528e73bb17147be5b7455bfb8e9
3 changes: 2 additions & 1 deletion src/s1reader/s1_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class AnnotationBase:
A virtual base class of the inheriting annotation class i.e. Product, Calibration, and Noise.
Not intended for standalone use.
'''

@staticmethod
def _parse_scalar(xml_et: ET.ElementTree, path_field: str, str_type: str):
'''A class method that parse the scalar value in AnnotationBase.xml_et
Expand Down Expand Up @@ -133,7 +134,7 @@ def _parse_scalar(xml_et: ET.ElementTree, path_field: str, str_type: str):

return val_out

@classmethod
@staticmethod
def _parse_vectorlist(xml_et: ET.ElementTree,
name_vector_list: str,
name_vector: str,
Expand Down