Skip to content

Commit

Permalink
Classfile.py: Add self.A_G as attribute because the Gaia extinction i…
Browse files Browse the repository at this point in the history
…nformation may be needed for shifting the Isochrones in the future.

Empirical_iso_reader.py: Changed paths

requirements.txt: Updated seaborn version
  • Loading branch information
rottenstea committed Mar 13, 2024
1 parent b7f0063 commit ac15b62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions EmpiricalArchive/Extraction/Classfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def __init__(self, name: str, catalog: pd.DataFrame, dataset_id=None):
av_cols = [col for col in self.data.columns if 'av' in col]
self.avs = self.data[av_cols].drop_duplicates()

# Gaia DR3 AG
if 'AG' in self.data.columns:
self.A_G = self.data["AG"]

error_cols = [col for col in self.data.columns if str(col).startswith("e_")]
self.errors = self.data[error_cols]

Expand Down
6 changes: 3 additions & 3 deletions EmpiricalArchive/Extraction/Empirical_iso_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def build_empirical_df(csv_folder: str, age_file: pd.DataFrame, col_names: list,
if __name__ == "__main__":
# ----------------------------------------------------------------------------------------------------------------------
# set paths
empirical_iso_path = "//data/Isochrones/Empirical/"
reference_ages = pd.read_csv("//data/Isochrones/Empirical/")
empirical_iso_path = "../data/Isochrones/Empirical/"
reference_ages = pd.read_csv("../data/Reference_ages_new.csv")
output_path = my_utility.set_output_path()

save_table = True
Expand Down Expand Up @@ -128,6 +128,6 @@ def build_empirical_df(csv_folder: str, age_file: pd.DataFrame, col_names: list,

# save the table
if save_table:
mastertable.to_csv("/Users/alena/PycharmProjects/Empirical_Isochrones/data/Isochrones/Mastertable_Archive.csv",
mastertable.to_csv("../data/Isochrones/Mastertable_Archive_TW-Hydrae.csv",
mode="w", header=True)
# ----------------------------------------------------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ numpy~=1.23.4
plotly~=5.9.0
scipy~=1.10.0
scikit-learn~=1.1.3
seaborn~=0.12.1
seaborn~=0.13.0
myst-nb~=0.17.2
sphinx-rtd-theme~=1.3.0

0 comments on commit ac15b62

Please sign in to comment.