removed saving notifications

This commit is contained in:
ayzen
2025-11-10 13:45:03 +03:00
parent 4dddc46bd8
commit 174ab59004
3 changed files with 1 additions and 23 deletions

View File

@ -35,7 +35,7 @@ VNA_PID = 0x5740 # STM32 Virtual ComPort
# -----------------------------------------------------------------------------
# Simulator mode settings
# -----------------------------------------------------------------------------
USE_SIMULATOR = True # Set to True to use simulator instead of real device
USE_SIMULATOR = False # Set to True to use simulator instead of real device
SIMULATOR_SWEEP_FILE = BASE_DIR / "binary_input" / "sweep_example" / "example.json"
SIMULATOR_NOISE_LEVEL = 100 # Standard deviation of Gaussian noise to add to real and imaginary parts

View File

@ -374,12 +374,6 @@ export class ChartManager {
if (processorData) {
downloadJSON(processorData, `${baseFilename}_data.json`);
}
this.notifications?.show?.({
type: 'success',
title: 'Скачивание завершено',
message: `Скачаны график и данные ${formatProcessorName(id)}`
});
}
};
@ -396,12 +390,6 @@ export class ChartManager {
if (processorData) {
downloadJSON(processorData, `${baseFilename}_data.json`);
}
this.notifications?.show?.({
type: 'warning',
title: 'Скачивание завершено',
message: `График скачан. Данные ограничены (нет подключения к серверу)`
});
}
} catch (e) {
console.error('Chart download failed:', e);
@ -592,12 +580,6 @@ export class ChartManager {
}
console.log('Total exported files:', exportedCount);
this.notifications?.show?.({
type: 'success',
title: 'Экспорт завершён',
message: `Данные свипов экспортированы для ${processorId}`
});
}
exportPointsToTSV(points, vnaConfig, filename) {

View File

@ -569,8 +569,6 @@ export class SettingsManager {
plot_data: plotsData.plot
};
downloadJSON(data, `${base}_data.json`);
this.notify(SUCCESS, 'Скачивание завершено', `Скачаны график и данные эталона ${plotsData.reference_name}`);
} catch (e) {
console.error('Download reference failed:', e);
this.notify(ERROR, 'Ошибка скачивания', 'Не удалось скачать данные эталона');
@ -589,8 +587,6 @@ export class SettingsManager {
const data = this.prepareCalibrationDownloadData(standardName);
downloadJSON(data, `${base}_data.json`);
this.notify(SUCCESS, 'Скачивание завершено', `Скачаны график и данные стандарта ${standardName.toUpperCase()}`);
} catch (e) {
console.error('Download standard failed:', e);
this.notify(ERROR, 'Ошибка скачивания', 'Не удалось скачать данные калибровки');