MCPcopy Create free account
hub / github.com/bsomps/OpenGeoPlotter / __init__

Method __init__

OGP_v11.py:753–968  ·  view source on GitHub ↗
(self, data, hole_ids, azimuth, plot_settings_dialog, attribute_column=None, attributes_model=None, attributes_dict=None, DEM_data=None, remove_outliers=True, remove_outliers_auxiliary=True, checkbox_add_grid_lines=True, checkbox_add_change_tick=True, upper_quantile=75.0, lower_quantile=25.0, IQR=3.0, x_buffer=120.0, y_buffer=0.05, line_width=3, selected_hole_ids_for_labels=None, selected_colormap="Spectral_r")

Source from the content-addressed store, hash-verified

751class CrossSection(QDialog): # Cross section window
752 MAX_BAR_LENGTH = 50 # for auxiliary bar plot
753 def __init__(self, data, hole_ids, azimuth, plot_settings_dialog, attribute_column=None, attributes_model=None, attributes_dict=None, DEM_data=None, remove_outliers=True, remove_outliers_auxiliary=True, checkbox_add_grid_lines=True, checkbox_add_change_tick=True, upper_quantile=75.0, lower_quantile=25.0, IQR=3.0, x_buffer=120.0, y_buffer=0.05, line_width=3, selected_hole_ids_for_labels=None, selected_colormap="Spectral_r"):
754 super().__init__()
755 print(selected_hole_ids_for_labels)
756
757 # Storing the data
758 self.data = data
759 self.hole_ids = hole_ids
760 self.azimuth = azimuth
761 self.plot_settings_dialog = plot_settings_dialog
762 self.attribute_column = attribute_column
763 self.attributes_dict = attributes_dict or {}
764 self.categorical_encodings = {}
765 manage_attributes_dialog = ManageAttributesDialog(data)
766 self.drag_region = None
767 self.is_plan_view = False
768 self.generate_contours_flag = False
769 self.isolate_flag = False
770 self.canvases = []
771 self.DEM_data = DEM_data
772 if DEM_data is not None:
773 self.DEM_loaded = True
774 else:
775 self.DEM_loaded = False
776
777
778 self.overlay_image_state = {
779 'x': None,
780 'y': None,
781 'width': None,
782 'height': None,
783 }
784
785 self.remove_outliers = remove_outliers
786 self.upper_quantile = upper_quantile
787 self.lower_quantile = lower_quantile
788 self.IQR = IQR
789 self.x_buffer = x_buffer
790 self.y_buffer = y_buffer
791 self.line_width = line_width
792 self.selected_hole_ids_for_labels = selected_hole_ids_for_labels
793 print("CrossSection - selected_hole_ids_for_labels:", self.selected_hole_ids_for_labels)
794 self.filtered_bar_data = self.data
795 self.remove_outliers_auxiliary = remove_outliers_auxiliary
796 self.bar_vmin = None
797 self.bar_vmax = None
798 self.checkbox_add_grid_lines = checkbox_add_grid_lines
799 self.checkbox_add_change_tick = checkbox_add_change_tick
800 self.selected_colormap = selected_colormap
801 self.attributes_model = attributes_model
802 self.setup_attribute_list_view()
803 self.attributes_model.itemChanged.connect(self.on_attribute_selection_changed)
804 self.pencil_mode = False
805 self.sky_color = 'lightsteelblue'
806 self.remove_topo_and_sky = False
807 self.currently_drawing = False
808 self.drawing_lines = []
809 self.current_overlay_image_display = None
810 self.overlay_image = None

Callers

nothing calls this directly

Calls 4

plotMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected