Skip to content

Commit

Permalink
#187 integrate prototype code into original codeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh23 committed Mar 12, 2023
1 parent 5ba6f3c commit 463d34f
Show file tree
Hide file tree
Showing 24 changed files with 186 additions and 1,535 deletions.
2 changes: 1 addition & 1 deletion src/analyze/util/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import typing
import numpy as np

from src.graphics.track_graphics import TrackGraphics
from src.graphics.track_graphics_old_v3 import TrackGraphics
from src.utils.colors import get_color_for_data, ColorPalette


Expand Down
3 changes: 1 addition & 2 deletions src/analyze/util/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
# Copyright (c) 2021 dmh23
#

from src.graphics.track_graphics import TrackGraphics
import math
from src.graphics.track_graphics_old_v3 import TrackGraphics

from src.utils.colors import get_color_for_data, ColorPalette

Expand Down
3 changes: 3 additions & 0 deletions src/prototype_ui/canvas.py → src/graphics/canvas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v4 UI STATUS - BRAND NEW
# ************************

from abc import abstractmethod

from PyQt6.QtWidgets import QGraphicsScene, QGraphicsView, QGraphicsRectItem, QGraphicsPixmapItem, \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from abc import ABC
# v4 UI STATUS - BRAND NEW
# ************************

from PyQt6.uic.properties import QtGui
from abc import ABC

from prototype_ui.canvas import Canvas
from PyQt6.QtWidgets import QGraphicsRectItem, QAbstractGraphicsShapeItem
from PyQt6.QtGui import QBrush, QPen, QPainter, QColor
from PyQt6.QtCore import Qt, QPointF, QPoint
from graphics.canvas import Canvas
from PyQt6.QtWidgets import QAbstractGraphicsShapeItem
from PyQt6.QtGui import QPen, QPainter
from PyQt6.QtCore import Qt

Point = (float | int, float | int) # Typedef which we will use a lot for graphics

Expand Down
4 changes: 3 additions & 1 deletion src/graphics/track_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
# Copyright (c) 2021 dmh23
#

from src.graphics.track_graphics import TrackGraphics
from src.graphics.track_graphics_old_v3 import TrackGraphics


class Annotation:
def draw(self, track_graphics: TrackGraphics, track_drawing_points, track_width):
pass # Override in child classes


def get_exact_point_(drawing_points, track_width, waypoint_id: int, side, distance_from_centre):
points = drawing_points[waypoint_id]

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/log/log_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from src.action_space.action_space import ActionSpace
from src.log.meta_field import MetaField, MetaFields, Optionality

LOG_META_VERSION = "4.0.0.DRAFT"
LOG_META_VERSION = "4.0.0.DRAFTxx"

MANDATORY = Optionality.MANDATORY
OPTIONAL = Optionality.OPTIONAL
Expand Down
3 changes: 3 additions & 0 deletions src/log/log_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v4 UI STATUS - CONVERSION IN PROGRESS
# *************************************

#
# DeepRacer Guru
#
Expand Down
2 changes: 1 addition & 1 deletion src/main/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Copyright (c) 2021 dmh23
#

VERSION = "3.2.18"
VERSION = "VERSION 4 PROTOTYPE"
125 changes: 0 additions & 125 deletions src/prototype_ui/hot_rod_super_speedway_cw_track.py

This file was deleted.

Loading

0 comments on commit 463d34f

Please sign in to comment.