Commit 0b59d855 authored by cponcele's avatar cponcele
Browse files

Fix a bug adding mandatory_if_applicable variable to mandatory variable array

parent f1d0fde7
......@@ -50,10 +50,10 @@ class AnnotationGrpValidator:
_coordinate_variables=["time"]
#Variables
_mandatory_variables=["annotation_text"]
_mandatory_variables=[]
_optional_variables=["annotation_category"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["annotation_text"]
class EnvironmentGrpValidator:
@staticmethod
def get_group_path_pattern():
......@@ -184,10 +184,10 @@ class PlatformGrpValidator:
_coordinate_variables=[]
#Variables
_mandatory_variables=["MRU_ids","position_ids","transducer_ids","transducer_function"]
_mandatory_variables=["transducer_function"]
_optional_variables=[]
_recommanded_variables=["MRU_offset_x","MRU_offset_y","MRU_offset_z","MRU_rotation_x","MRU_rotation_y","MRU_rotation_z","position_offset_x","position_offset_y","position_offset_z","transducer_offset_x","transducer_offset_y","transducer_offset_z","transducer_rotation_x","transducer_rotation_y","transducer_rotation_z","water_level"]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["MRU_ids","position_ids","transducer_ids"]
#Sub groups
class PositionGrpValidator:
......@@ -230,10 +230,10 @@ class PositionSubGroupValidator:
_coordinate_variables=["time"]
#Variables
_mandatory_variables=["latitude","longitude","heading","speed_over_ground","speed_relative","height_above_reference_ellipsoid","altitude"]
_mandatory_variables=["latitude","longitude"]
_optional_variables=["course_over_ground","distance"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["heading","speed_over_ground","speed_relative","height_above_reference_ellipsoid","altitude"]
#Sub groups
class NmeaGrpValidator:
......@@ -297,10 +297,10 @@ class AttitudeSubGroupValidator:
_coordinate_variables=["time"]
#Variables
_mandatory_variables=["heading","heading_rate","pitch","roll","vertical_offset"]
_mandatory_variables=["pitch","roll","vertical_offset"]
_optional_variables=["pitch_rate","roll_rate"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["heading","heading_rate"]
#Sub groups
class ProvenanceGrpValidator:
......@@ -320,10 +320,10 @@ class ProvenanceGrpValidator:
_coordinate_variables=[]
#Variables
_mandatory_variables=["source_filenames"]
_mandatory_variables=[]
_optional_variables=[]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["source_filenames"]
class SonarGrpValidator:
@staticmethod
def get_group_path_pattern():
......@@ -364,10 +364,10 @@ class BeamGroup1GrpValidator:
_coordinate_variables=["beam","ping_time"]
#Variables
_mandatory_variables=["backscatter_i","backscatter_r","echoangle_major","echoangle_minor","echoangle_major_sensitivity","echoangle_minor_sensitivity","beamwidth_receive_major","beamwidth_receive_minor","beamwidth_transmit_major","beamwidth_transmit_minor","rx_beam_rotation_phi","rx_beam_rotation_theta","rx_beam_rotation_psi","tx_beam_rotation_phi","tx_beam_rotation_theta","tx_beam_rotation_psi","beam_stabilisation","beam_type","equivalent_beam_angle","gain_correction","non_quantitative_processing","receiver_sensitivity","sample_interval","sample_time_offset","blanking_interval","time_varied_gain","transducer_gain","transmit_duration_nominal","receive_duration_effective","transmit_frequency_start","transmit_frequency_stop","transmit_power","transmit_source_level","transmit_type","receive_transducer_index","transmit_transducer_index","transmit_beam_index","active_MRU","active_position_sensor","platform_latitude","platform_longitude","platform_heading","platform_pitch","platform_roll","platform_vertical_offset"]
_mandatory_variables=["backscatter_r","beamwidth_receive_major","beamwidth_receive_minor","rx_beam_rotation_phi","rx_beam_rotation_theta","rx_beam_rotation_psi","tx_beam_rotation_phi","tx_beam_rotation_theta","tx_beam_rotation_psi","beam_stabilisation","beam_type","equivalent_beam_angle","non_quantitative_processing","sample_interval","sample_time_offset","blanking_interval","transmit_duration_nominal","transmit_frequency_start","transmit_frequency_stop","transmit_type","platform_latitude","platform_longitude","platform_heading","platform_pitch","platform_roll","platform_vertical_offset"]
_optional_variables=["detected_bottom_range","transmit_bandwidth","sound_speed_at_transducer","tx_transducer_depth","waterline_to_chart_datum"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["backscatter_i","echoangle_major","echoangle_minor","echoangle_major_sensitivity","echoangle_minor_sensitivity","beamwidth_transmit_major","beamwidth_transmit_minor","gain_correction","receiver_sensitivity","time_varied_gain","transducer_gain","receive_duration_effective","transmit_power","transmit_source_level","receive_transducer_index","transmit_transducer_index","transmit_beam_index","active_MRU","active_position_sensor"]
#Sub groups
class AdcpGrpValidator:
......@@ -387,10 +387,10 @@ class AdcpGrpValidator:
_coordinate_variables=[]
#Variables
_mandatory_variables=["backscatter_at_bottom_i","backscatter_at_bottom_r","bin_lenght","bottom_track_velocity_vessel_x","bottom_track_velocity_vessel_y","bottom_track_velocity_vessel_z","correlation","correlation_at_bottom","correlation_factor_limit","current_velocity_geographical_down","current_velocity_geographical_east","current_velocity_geographical_north","depth_first_sample_center","error_velocity_limit","transmit_duration_nominal_sub_pulse","transmit_lag_interval_sub_pulse","quality","scaling_factor","slant_range_to_bottom","sv_dbw_high_limit","sv_dbw_low_limit","velocity_depth_stabilisation","velocity_motion_stabilisation","vertical_sample_interval"]
_mandatory_variables=["vertical_sample_interval"]
_optional_variables=["current_velocity_vessel_x","current_velocity_vessel_y","current_velocity_vessel_z","error_velocity","velocity"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["backscatter_at_bottom_i","backscatter_at_bottom_r","bin_lenght","bottom_track_velocity_vessel_x","bottom_track_velocity_vessel_y","bottom_track_velocity_vessel_z","correlation","correlation_at_bottom","correlation_factor_limit","current_velocity_geographical_down","current_velocity_geographical_east","current_velocity_geographical_north","depth_first_sample_center","error_velocity_limit","transmit_duration_nominal_sub_pulse","transmit_lag_interval_sub_pulse","quality","scaling_factor","slant_range_to_bottom","sv_dbw_high_limit","sv_dbw_low_limit","velocity_depth_stabilisation","velocity_motion_stabilisation"]
#Sub groups
class MeanCurrentGrpValidator:
......@@ -410,10 +410,10 @@ class MeanCurrentGrpValidator:
_coordinate_variables=["mean_time"]
#Variables
_mandatory_variables=["averaging","bottom_track_velocity_vessel_x","bottom_track_velocity_vessel_y","bottom_track_velocity_vessel_z","current_velocity_geographical_down","current_velocity_geographical_east","current_velocity_geographical_north","current_velocity_vessel_x","current_velocity_vessel_y","current_velocity_vessel_z","mean_bin_lenght","mean_platform_heading","mean_platform_latitude","mean_platform_longitude","mean_platform_pitch","mean_platform_roll","mean_platform_vertical","percent_good_limit","ping_averaged","quality"]
_mandatory_variables=["averaging"]
_optional_variables=[]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["bottom_track_velocity_vessel_x","bottom_track_velocity_vessel_y","bottom_track_velocity_vessel_z","current_velocity_geographical_down","current_velocity_geographical_east","current_velocity_geographical_north","current_velocity_vessel_x","current_velocity_vessel_y","current_velocity_vessel_z","mean_bin_lenght","mean_platform_heading","mean_platform_latitude","mean_platform_longitude","mean_platform_pitch","mean_platform_roll","mean_platform_vertical","percent_good_limit","ping_averaged","quality"]
class BathymetryGrpValidator:
@staticmethod
def get_group_path_pattern():
......@@ -431,10 +431,10 @@ class BathymetryGrpValidator:
_coordinate_variables=[]
#Variables
_mandatory_variables=["detection_x","detection_y","detection_z","status","status_detail","detection_type","detection_rx_transducer_index","detection_tx_beam","detection_tx_transducer_index","detection_backscatter_r","detection_backscatter_i","detection_source_level_applied","detection_receiver_sensitivity_applied","detection_backscatter_calibration","detection_time_varying_gain","detection_mean_absorption_coefficient","seabed_image_samples_r"]
_mandatory_variables=["detection_x","detection_y","detection_z","status","status_detail","detection_type","detection_rx_transducer_index","detection_tx_beam","detection_tx_transducer_index","detection_backscatter_r","detection_backscatter_i","seabed_image_samples_r"]
_optional_variables=["detection_latitude","detection_longitude","detection_beam_pointing_angle","detection_two_way_travel_time","detection_quality_factor","detection_rx_beam","seabed_image_start_range","seabed_image_center"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["detection_source_level_applied","detection_receiver_sensitivity_applied","detection_backscatter_calibration","detection_time_varying_gain","detection_mean_absorption_coefficient"]
#Sub groups
class GridGroup1GrpValidator:
......@@ -454,7 +454,7 @@ class GridGroup1GrpValidator:
_coordinate_variables=[]
#Variables
_mandatory_variables=["beam","frequency","beam_reference","backscatter_type","ping_axis_interval_type","ping_axis_interval_value","range_axis_interval_type","range_axis_interval_value","cell_ping_time","integrated_backscatter","beamwidth_receive_major","beamwidth_receive_minor","beamwidth_transmit_major","beamwidth_transmit_minor","rx_beam_rotation_phi","rx_beam_rotation_theta","rx_beam_rotation_psi","tx_beam_rotation_phi","tx_beam_rotation_theta","tx_beam_rotation_psi","beam_stabilisation","beam_type","equivalent_beam_angle","gain_correction","non_quantitative_processing","receiver_sensitivity","sample_interval","sample_time_offset","blanking_interval","time_varied_gain","transducer_gain","transmit_duration_nominal","receive_duration_effective","transmit_frequency_start","transmit_frequency_stop","transmit_power","transmit_source_level","transmit_type","receive_transducer_index","cell_latitude","cell_longitude","cell_depth"]
_mandatory_variables=["beam","frequency","beam_reference","backscatter_type","ping_axis_interval_value","range_axis_interval_type","range_axis_interval_value","cell_ping_time","integrated_backscatter","beamwidth_receive_major","beamwidth_receive_minor","rx_beam_rotation_phi","rx_beam_rotation_theta","rx_beam_rotation_psi","tx_beam_rotation_phi","tx_beam_rotation_theta","tx_beam_rotation_psi","beam_stabilisation","beam_type","equivalent_beam_angle","non_quantitative_processing","sample_interval","sample_time_offset","blanking_interval","transmit_duration_nominal","transmit_frequency_start","transmit_frequency_stop","transmit_type","cell_latitude","cell_longitude","cell_depth"]
_optional_variables=["detected_bottom_range","transmit_bandwidth","sound_speed_at_transducer","tx_transducer_depth","waterline_to_chart_datum"]
_recommanded_variables=[]
_mandatory_if_applicable_variables=[]
_mandatory_if_applicable_variables=["ping_axis_interval_type","beamwidth_transmit_major","beamwidth_transmit_minor","gain_correction","receiver_sensitivity","time_varied_gain","transducer_gain","receive_duration_effective","transmit_power","transmit_source_level","receive_transducer_index"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment