Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add is_valid flag to output file. #46

Merged
merged 1 commit into from
Apr 27, 2022
Merged
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
3 changes: 2 additions & 1 deletion magicctapipe/scripts/lst1_magic/lst1_magic_stereo_reco.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def stereo_reconstruction(input_file, output_dir, config):
event_data.loc[(obs_id, event_id, tel_id), 'core_x'] = stereo_params.core_x.to(u.m).value
event_data.loc[(obs_id, event_id, tel_id), 'core_y'] = stereo_params.core_y.to(u.m).value
event_data.loc[(obs_id, event_id, tel_id), 'impact'] = impact.to(u.m).value
event_data.loc[(obs_id, event_id, tel_id), 'is_valid'] = stereo_params.is_valid

n_events_processed = i_evt + 1
logger.info(f'{n_events_processed} events')
Expand Down Expand Up @@ -297,7 +298,7 @@ def main():

parser.add_argument(
'--config-file', '-c', dest='config_file', type=str, default='./config.yaml',
help='Path to a yaml configuration file.',
help='Path to a yaml configuration file.',
)

args = parser.parse_args()
Expand Down