Skip to content

Commit

Permalink
Merge branch 'feature/validation_tables' of https://github.com/astroc…
Browse files Browse the repository at this point in the history
…hun/Metallicity_Stack_Commons into feature/validation_tables
  • Loading branch information
astrochun committed Mar 26, 2020
2 parents 13bfb91 + 5d1db9b commit c42be36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Metallicity_Stack_Commons/valid_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def make_validation_table(fitspath):
up_limit = (Hgamma/Hgamma_SN) *3


valid_stacks_idx = np.where((O_4363_SN >= 3) & (O_5007_SN > 100) & (O_4363_sigma < 2))[0]
valid_stacks_idx = np.where((O_4363_SN >= 3) & (O_5007_SN > 100) & (O_4363_sigma < 1.6))[0]
reliable_5007_stacks = np.where((O_4363_SN < 3) & (O_5007_SN > 100))[0]
wide_lines_valid = np.where((O_4363_SN >= 3) & (O_5007_SN > 100) & (O_4363_sigma >= 2))[0]
wide_lines_valid = np.where((O_4363_SN >= 3) & (O_5007_SN > 100) & (O_4363_sigma >= 1.6))[0]
detection[valid_stacks_idx] = 1
detection[reliable_5007_stacks] = 0.5
detection[wide_lines_valid] = 0.5
Expand Down

0 comments on commit c42be36

Please sign in to comment.