Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanaseus committed Feb 26, 2025
1 parent 3082c78 commit 94e06e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions rfinder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,17 @@ def setArgs(self, kwargs):
if kwargs.get('rfi_enable') is False:
self.cfg_par['rfi']['rfi_enable'] = False
self.cfg_par['plots']['plot_details']['enable'] = False
if kwargs.get('plot_summary_enable') is False:
self.cfg_par['plots']['plot_summary']['enable'] = False
if kwargs.get('plot_summary_enable') is True:
self.cfg_par['plots']['plot_summary']['enable'] = True
if kwargs.get('plot_summary_options'):
self.cfg_par['plots']['plot_summary']['axis'] = kwargs['plot_summary_options']
if kwargs.get('freq_bin'):
self.cfg_par['plots']['plot_summary']['freq_bin'] = kwargs['plot_summary_freq_bin']
if kwargs.get('freq_bin'):
self.cfg_par['plots']['plot_summary']['report'] = kwargs['plot_summary_report']
elif kwargs.get('plot_summary_enable') in [False, None]:
if kwargs.get('plot_summary_enable') is False:
self.cfg_par['plots']['plot_summary']['enable'] = False
if kwargs.get('plot_summary_options'):
self.cfg_par['plots']['plot_summary']['axis'] = kwargs['plot_summary_options']
if kwargs.get('freq_bin'):
Expand Down
2 changes: 1 addition & 1 deletion rfinder/rfinder_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def write_html_fullreport(cfg_par):
video_encoded3 = base64.b64encode(open(video_name3, "rb").read())

video_name4 = cfg_par['general']['moviedir']+'TimeChunks_1D_noise_factor.gif'
if os.path.exists(video_name34):
if os.path.exists(video_name4):
video_encoded4 = base64.b64encode(open(video_name3, "rb").read())

if cfg_par['plots']['plot_details']['movies']['movies_in_report'] == True:
Expand Down

0 comments on commit 94e06e4

Please sign in to comment.