Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions frb/builds/build_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ def run(host_input:pandas.core.series.Series,
project_list, ref_list, '_galight.json',
prefix=file_root+'_'+host_input.Galfit_filter)
if not found_galfit:
embed(header='Check 450')
raise IOError(f"Galfit file with filter {host_input.Galfit_filter} not found!")
print(f"Galfit analysis slurped in via: {galfit_file}")
Host.parse_galfit(galfit_file)
Expand Down Expand Up @@ -487,6 +488,18 @@ def run(host_input:pandas.core.series.Series,
hikey = key.replace('lo', 'up')
Host.derived[hikey] = float(lit_tbl[hikey].data[0])

# Add PATH
hosts_file = importlib_resources.files('frb.data.Galaxies')/'public_hosts.csv'
hosts_df = pandas.read_csv(hosts_file, index_col=False)

indx = file_root == 'HG'+hosts_df.FRB.values
if np.any(indx):
# Get the row
host_row = hosts_df.loc[indx].iloc[0]
# Set P_Ox
Host.path['P_Ox'] = host_row.P_Ox
# Reference would go here

# Vet all
assert Host.vet_all()

Expand Down
Loading