Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
MCFlowMace committed Oct 1, 2021
2 parents af99041 + 816f6a8 commit 955c769
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hercules/hexbug
11 changes: 8 additions & 3 deletions hercules/simconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def _set_dict_2d(key_dict, key_to_var_dict, arg_dict):
var = key_to_var_dict.get(sub_key)
if var:
val = arg_dict.get(var[0])
if val:
if val is not None:
output[key][sub_key] = val

return output
Expand Down Expand Up @@ -609,6 +609,7 @@ class LocustConfig:
_element_spacing_key = 'element-spacing'
_tf_receiver_bin_width_key = 'tf-receiver-bin-width'
_tf_receiver_filename_key = 'tf-receiver-filename'
_event_spacing_samples_key = 'event-spacing-samples'

#phase 2 specific
_kass_signal_key = 'kass-signal' #first level key
Expand Down Expand Up @@ -640,7 +641,8 @@ class LocustConfig:
_array_radius_key,
_element_spacing_key,
_tf_receiver_bin_width_key,
_tf_receiver_filename_key],
_tf_receiver_filename_key,
_event_spacing_samples_key],
_kass_signal_key: [_xml_filename_key,
_lo_frequency_key,
_center_to_short_key,
Expand Down Expand Up @@ -682,6 +684,9 @@ class LocustConfig:
_array_radius_key: ['array_radius',
'float -- Radius of the antenna array in m'],

_event_spacing_samples_key: ['event_spacing_samples',
'int -- Number of samples before first event and between events'],

_element_spacing_key: ['element_spacing',
'float -- Spacing of the waveguide slots'],

Expand Down Expand Up @@ -731,7 +736,7 @@ def __init__(self,

self._config_dict = _set_dict_2d(self._key_dict, self._key_to_var_dict,
kwargs)

self._handle_phase(phase, locust_file_name)
templateConfig = _get_json_from_file(self._file_name)

Expand Down
2 changes: 1 addition & 1 deletion hercules/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def _assemble_command(self, output_dir):

check_failure = "if [ $? -gt 1 ];then scontrol requeue $SLURM_JOB_ID;fi;"

final_command = singularity_cmd + ';' + check_failure +'\n\n'
final_command = singularity_cmd + ';' + check_failure +'\n'

return final_command

Expand Down

0 comments on commit 955c769

Please sign in to comment.