Skip to content

Commit

Permalink
Merge pull request #925 from zariiii9003/bug_fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
danielhrisca committed Oct 15, 2023
2 parents a9e0067 + 97913da commit 76ef612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/asammdf/gui/widgets/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import numpy as np
from PySide6 import QtCore, QtWidgets
from PySide6.QtWebEngineCore import QWebEngineSettings

try:
from pyqtlet2 import L, leaflet, MapWidget
Expand Down Expand Up @@ -55,6 +56,7 @@ def __init__(self, latitude_channel, longitude_channel, zoom=15, *args, **kwargs
self.max_t.setText(f"{self._max:.6f}s")

self.mapWidget = MapWidget()
self.mapWidget.settings().setAttribute(QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls, True)
self.map_layout.insertWidget(0, self.mapWidget)
self.map_layout.setStretch(0, 1)

Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@lru_cache(maxsize=1024)
def polygon_and_ndarray(size):
polygon = fn.create_qpolygonf(size)
ndarray = fn.ndarray_from_qpolygonf(polygon)
ndarray = fn.ndarray_from_qpolygonf(polygon).copy()
return polygon, ndarray


Expand Down

0 comments on commit 76ef612

Please sign in to comment.