Skip to content

Commit

Permalink
tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
mpecchi committed May 8, 2024
1 parent 01044f1 commit 8401b76
Show file tree
Hide file tree
Showing 5 changed files with 653 additions and 78 deletions.
8 changes: 8 additions & 0 deletions src/gcms_data_analysis/gcms.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,14 @@ def add_iupac_to_files_and_calibrations(self):
def create_tanimoto_and_molecular_weight_similarity_dfs(
self,
) -> tuple[pd.DataFrame, pd.DataFrame]:
if not self.files:
self.load_all_files()
if not self.calibrations:
self.load_calibrations()
if self.compounds_properties is None:
self.load_compounds_properties()
if self.dict_names_to_iupacs is None:
self.create_dict_names_to_iupacs()
if "iupac_name" not in list(self.files.values())[0].columns:
self.add_iupac_to_files_and_calibrations()
prop_index_iupac = self.compounds_properties.set_index("iupac_name")
Expand Down
Binary file modified tests/data_minimal_case/compounds_properties.xlsx
Binary file not shown.
Binary file modified tests/data_minimal_case/files_info.xlsx
Binary file not shown.
Binary file removed tests/data_minimal_case/output/plots/plot.png
Binary file not shown.
Loading

0 comments on commit 8401b76

Please sign in to comment.