Skip to content

Conversation

@SRemulla
Copy link
Collaborator

Added multiband capabilities to refine_events

synthetic.py

  • refine_events
    • filter_dict loops through each key and value of the dictionary
  • check_refine_events
    • Checks that filter_dict is in correct format
    • Checks that filter_name and photometric_system are not defined while filter_dict is defined
    • Checks that either filter_dict or both filter_name and photometric_system are provided
    • Checks that if using filter_name + photometric_system, both must be provided
      run.py
  • refine_events
    • Each instance of refine_events is changed such that they use the dictionary to operate
    • All file outputs are changed so that the names of the file still match the old version using filter_dict
    • If skip_refine_binary_events is false, filter_dict gets split up into photometric_system and filter_name for refine_binary events ONLY
    • run.py will use the first filter in the dictionary to run refine_binary_events
      Ran test_synthetic.py
      Updated tutorials to take filter_dict for refine_events

@nsabrams
Copy link
Collaborator

nsabrams commented Sep 9, 2025

Sage will update filename generation in run.py to be done in _return_filename_dict()

Copy link
Collaborator

@nsabrams nsabrams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants