Skip to content

Commit 2b68637

Browse files
authored
Merge pull request Open-MSS#2724 from Open-MSS/merge_stable_to_develop
2 parents 730ea74 + 205af16 commit 2b68637

31 files changed

+3406
-397
lines changed

CHANGES.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
5+
Version 10.1.0
6+
~~~~~~~~~~~~~~
7+
8+
Bug fix release and minor enhancements:
9+
We added a simpler way of moving flight tracks between local flighttrack / operation.
10+
See the new menu entries below File - Import and File - Copy Into New
11+
12+
All changes:
13+
https://github.com/Open-MSS/MSS/milestone/114?closed=1
14+
15+
416
Version 10.0.1
517
~~~~~~~~~~~~~~
618
Bug fix release:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_tutorial_images():
2727
os.makedirs(TUTORIAL_DIR)
2828
TUTORIAL_ARCHIVE = 'videos/mp4/tutorials.zip'
2929
if not os.path.exists(TUTORIAL_ARCHIVE):
30-
response = requests.get(TUTORIAL_URL)
30+
response = requests.get(TUTORIAL_URL, timeout=(2, 600))
3131
open(TUTORIAL_ARCHIVE, "wb").write(response.content)
3232
with zipfile.ZipFile(TUTORIAL_ARCHIVE) as zip_file:
3333
for item in zip_file.namelist():

docs/samples/automation/retriever.py

Lines changed: 0 additions & 279 deletions
This file was deleted.

mslib/mscolab/file_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def modify_user(self, user, attribute=None, value=None, action=None):
260260
return True
261261

262262
def delete_user_profile_image(self, image_to_be_deleted):
263-
'''
263+
"""
264264
This function is called when deleting account or updating the profile picture
265-
'''
265+
"""
266266
upload_folder = mscolab_settings.UPLOAD_FOLDER
267267
if sys.platform.startswith('win'):
268268
upload_folder = upload_folder.replace('\\', '/')

mslib/msidp/idp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def do(self, request, binding, relay_state="", encrypt_cert=None, **kwargs):
666666
IdpServerSettings_.IDP.session_db.remove_authn_statements(msg.name_id)
667667
except KeyError as exc:
668668
logger.error("Unknown session: %s", exc)
669-
resp = ServiceError("Unknown session: %s", exc)
669+
resp = ServiceError(f"Unknown session: {exc}")
670670
return resp(self.environ, self.start_response)
671671

672672
resp = IdpServerSettings_.IDP.create_logout_response(msg, [binding])

mslib/msui/autoplot_dockwidget.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ def download_plots_cli(self, config_settings):
164164
"Cannot download empty treewidget"
165165
)
166166
return
167+
if self.intv == "":
168+
if self.stime and self.etime:
169+
QMessageBox.information(
170+
self,
171+
"ERROR",
172+
"Please provide a valid time step value"
173+
)
174+
return
175+
167176
view = "top"
168177
intv = 0
169178
if self.intv != "":

mslib/msui/flighttrack.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def setData(self, index, value, role=QtCore.Qt.EditRole, update=True):
437437
return False
438438

439439
def insertRows(self, position, rows=1, index=QtCore.QModelIndex(),
440-
waypoints=None, hexagonCreated=False):
440+
waypoints=None, hexagonCreated=False, data_copied=False):
441441
"""
442442
Insert waypoint; overrides the corresponding QAbstractTableModel
443443
method.
@@ -447,7 +447,11 @@ def insertRows(self, position, rows=1, index=QtCore.QModelIndex(),
447447

448448
assert len(waypoints) == rows, (waypoints, rows)
449449

450-
savedChangeMessage = "Hexagon created." if hexagonCreated else ("Inserted a new waypoint.")
450+
savedChangeMessage = "Inserted a new waypoint."
451+
if hexagonCreated:
452+
savedChangeMessage = "Hexagon created."
453+
elif data_copied:
454+
savedChangeMessage = "Imported from another flight track"
451455
self.changeMessageSignal.emit(savedChangeMessage)
452456

453457
self.beginInsertRows(QtCore.QModelIndex(), position,
@@ -609,7 +613,7 @@ def invert_direction(self):
609613

610614
def replace_waypoints(self, new_waypoints):
611615
self.waypoints = []
612-
self.insertRows(0, rows=len(new_waypoints), waypoints=new_waypoints)
616+
self.insertRows(0, rows=len(new_waypoints), waypoints=new_waypoints, data_copied=True)
613617

614618
def save_to_ftml(self, filename=None):
615619
"""

0 commit comments

Comments
 (0)