From b8b9035b34f81ce3dc37ffcf24b231398d2d6e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 21 May 2025 15:25:32 +0200 Subject: [PATCH] fixes --- check.py | 6 ------ optifik/analysis.py | 27 --------------------------- 2 files changed, 33 deletions(-) diff --git a/check.py b/check.py index 8e659a5..f9bc884 100644 --- a/check.py +++ b/check.py @@ -1,12 +1,6 @@ -# -*- coding: utf-8 -*- -""" -Created on Tue Apr 15 13:34:02 2025 -@author: ziapkoff -""" import os - import matplotlib.pyplot as plt diff --git a/optifik/analysis.py b/optifik/analysis.py index dea6ea8..3956f7c 100644 --- a/optifik/analysis.py +++ b/optifik/analysis.py @@ -31,30 +31,6 @@ def plot_spectrum(lambdas, intensities, title=''): plt.tight_layout() plt.show() - - -def plot_xy(file_path, plot=True): - try: - # Lecture du fichier .xy en utilisant pandas - data = pd.read_csv(file_path, delimiter=',', header=None, names=["x", "y"]) - - # Extraction des colonnes - x = data["x"] - y = data["y"] - - # Tracer la deuxième colonne en fonction de la première - plt.figure(figsize=(10, 6),dpi = 600) - plt.plot(x, y, 'o-', markersize=2, label="Raw data") - - # Ajout des labels et du titre - plt.xlabel(r'$\lambda$ (nm)') - plt.ylabel(r'$I^*$') - plt.legend() - - except FileNotFoundError: - print(f"Erreur : le fichier '{file_path}' est introuvable.") - except Exception as e: - print(f"Une erreur est survenue : {e}") @@ -88,9 +64,6 @@ def finds_peak(lambdas, intensities, min_peak_prominence, min_peak_distance=10, plt.show() - - - return peaks_min, peaks_max