Skip to content
Snippets Groups Projects
Verified Commit a8a158e8 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

format

parent 37cb0f6b
Branches
No related tags found
No related merge requests found
......@@ -55,12 +55,18 @@ def _parse_float_or_none(v: str, msg: str) -> float | None:
)
def _parse_plot_bounds(bounds: Tuple[str, str] | None, msg: str) -> Tuple[float | None, float | None]:
def _parse_plot_bounds(
bounds: Tuple[str, str] | None,
msg: str,
) -> Tuple[float | None, float | None]:
if bounds is None:
return (None, None)
low, high = bounds
return (_parse_float_or_none(low, msg=msg), _parse_float_or_none(high, msg=msg))
return (
_parse_float_or_none(low, msg=msg),
_parse_float_or_none(high, msg=msg),
)
if __name__ == "__main__":
......
......@@ -33,6 +33,7 @@ HELP="""# Example
}
```"""
# convert raw data into groups and measurements
#
# # Example
......
......@@ -12,35 +12,42 @@ from log import panic, warning, debug, info
from typing import Any, Dict, List, Optional, Tuple, TypedDict
class Point(TypedDict):
x: float
y: float
e: Optional[float]
class MarkerStyle(TypedDict):
shape: Optional[str]
size: Optional[int]
class LineStyle(TypedDict):
marker: Optional[MarkerStyle]
type: Optional[str]
width: Optional[int]
alpha: Optional[float]
class ErrorStyle(TypedDict):
alpha: Optional[float]
class Style(TypedDict):
color: Optional[str]
line: Optional[LineStyle]
error: Optional[ErrorStyle]
class Graph(TypedDict):
name: Optional[str]
legend: Optional[str]
points: List[Point]
style: Optional[Style]
class Font(TypedDict):
family: str
serif: str
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment