fix: костыль для демонстрации

This commit is contained in:
Андрей Скирченко 2025-02-19 16:47:35 +03:00
parent c8b2d1539f
commit 40911e6480
2 changed files with 18 additions and 18 deletions

View File

@ -129,22 +129,22 @@ class BasePlotWidget:
}
]
},
"Electrode Force, N": {
"Settings": {
"zoom": True,
"stages": False
},
"Signals": [
{
"name": "Electrode Force, N ME",
"pen": 'r',
},
{
"name": "Electrode Force, N FE",
"pen": 'w',
}
]
},
# "Electrode Force, N": {
# "Settings": {
# "zoom": True,
# "stages": False
# },
# "Signals": [
# {
# "name": "Electrode Force, N ME",
# "pen": 'r',
# },
# {
# "name": "Electrode Force, N FE",
# "pen": 'w',
# }
# ]
# },
"Electrode Speed, mm/s": {
"Settings": {
"zoom": False,

View File

@ -70,7 +70,7 @@ class PlotWidget(BasePlotWidget):
widget = QWidget()
layout = QVBoxLayout()
time_axis = dataframe["time"]
time_axis = dataframe["Time"]
dataframe_headers = dataframe.columns.tolist()
for channel, description in self._plt_channels.items():
@ -84,7 +84,7 @@ class PlotWidget(BasePlotWidget):
plot_widget.addItem(region)
if settings["zoom"]:
if max(time_axis) < 5.0:
if max(time_axis) > 100500.0:
stages = [self.get_stage_info("Welding",
dataframe,
signal["name"]) for signal in description["Signals"]]