Skip to content

Commit

Permalink
Merge branch 'fix46lgtmissues' into feature98-refactortotables
Browse files Browse the repository at this point in the history
Adding in recent lgtm changes to UI fixes branch
  • Loading branch information
lbleier-GSFC committed May 29, 2020
2 parents 3281e1d + 257f929 commit 9ab63a3
Show file tree
Hide file tree
Showing 19 changed files with 5,999 additions and 178 deletions.
1 change: 0 additions & 1 deletion GroundSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def startCmdSystem():
def startFDLSystem(self):
selectedSpacecraft = self.getSelectedSpacecraftName()
if selectedSpacecraft == 'All':
subscription = ''
self.DisplayErrorMessage(
'Cannot open FDL manager.\nNo spacecraft selected.')
else:
Expand Down
2 changes: 1 addition & 1 deletion Guide-GroundSystem.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cFS Ground System Version 2.1.8
# cFS Ground System Version 2.1.9

## cFS Ground System Info

Expand Down
2 changes: 1 addition & 1 deletion Guide-GroundSystem.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cFS Ground System Version 2.1.8
cFS Ground System Version 2.1.9

cFS Ground System Info:

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ See Guide-GroundSystem.txt for more information.

## Version History

### Development Build: 2.1.9

- Upgrading PyQt4 to PyQt5 and includes a lot of cleanup/refactoring, and changes to the GUI itself
- See <https://github.com/nasa/cFS-GroundSystem/pull/90>

### Development Build: 2.1.8

- No warnings when building with GCC9
Expand Down
10 changes: 4 additions & 6 deletions Subsystems/cmdGui/CHeaderParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ def getFileList(filename='CHeaderParser-hdr-paths.txt'):
l = l.strip()
if l and not l.startswith("#"):
paths.append(l)
print(f"Using header files found in {filename}")
# Send paths back to caller function
return paths
print(f"Using header files found in {filename}")
# Send paths back to caller function
return paths
except IOError:
print("Couldn't find default file. Check command line arguments.")
except:
print("Unexpected error:", sys.exc_info()[0])

print("No header files found. Please make sure to provide the\n"
"default file for loading headers (CHeaderParser-hdr-paths.txt)")
Expand Down Expand Up @@ -449,7 +447,7 @@ def getFileList(filename='CHeaderParser-hdr-paths.txt'):
input((f"Please enter the defined value for "
f"{array_name_size[1]} (0 - 128): ")))
except ValueError:
pass
pass # Ignore non-integer and try again

# Add string length argument to parameter list
stringLens.append(array_size)
Expand Down
6 changes: 3 additions & 3 deletions Subsystems/cmdGui/CommandSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from PyQt5.QtWidgets import QApplication, QDialog

from CommandSystemDialog import Ui_CommandSystemDialog
from Ui_CommandSystemDialog import Ui_CommandSystemDialog

ROOTDIR = Path(sys.argv[0]).resolve().parent

Expand Down Expand Up @@ -161,7 +161,7 @@ def ProcessQuickButton(self, idx):
#
# Mark the remaining values as invalid
#
for j in range(i, 22):
for _ in range(i, 22):
cmdPageAppid.append(0)
cmdPageIsValid.append(False)

Expand Down Expand Up @@ -204,7 +204,7 @@ def ProcessQuickButton(self, idx):
quickIdx = subsys.index(cmdPageDesc[k])
quickButton.setText(quickCmd[quickIdx])
except ValueError:
pass
pass # Ignore quick button
quickIndices.append(quickIdx)
else:
subsysBrowser.setText("(unused)")
Expand Down
8 changes: 4 additions & 4 deletions Subsystems/cmdGui/Parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from PyQt5.QtWidgets import QApplication, QDialog

from HTMLDocsParser import HTMLDocsParser
from ParameterDialog import Ui_Dialog
from Ui_ParameterDialog import Ui_Dialog

ROOTDIR = Path(sys.argv[0]).resolve().parent

Expand Down Expand Up @@ -82,7 +82,7 @@ def ProcessSendButton(self):
#
subsysTitle, cmdDesc, pageEndian, pageAddress, cmdCode, params = (
'' for _ in range(6))
idx, pagePktId, pagePort = (0 for _ in range(3))
pagePktId, pagePort = 0, 0
param_file = 'struct_c_f_e___e_s___start_app_cmd__t.html'

#
Expand All @@ -99,7 +99,7 @@ def ProcessSendButton(self):
elif opt in ("-d", "--descrip"):
cmdDesc = arg # command name, eg No-Op
elif opt in ("-i", "--idx"):
idx = int(arg) # comand index in command definition file
_ = int(arg) # comand index in command definition file
elif opt in ("-h", "--host"):
pageAddress = arg # send to address
elif opt in ("-p", "--port"):
Expand Down Expand Up @@ -141,7 +141,7 @@ def ProcessSendButton(self):
paramName.setText(paramNames[i])
descrip.setText(paramDesc[i])
except IndexError:
pass
pass # Ignore nonexistent array items

#
# Displays the dialog
Expand Down
2 changes: 1 addition & 1 deletion Subsystems/cmdGui/UdpCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

from PyQt5.QtWidgets import QApplication, QDialog

from GenericCommandDialog import Ui_GenericCommandDialog
from Ui_GenericCommandDialog import Ui_GenericCommandDialog

ROOTDIR = Path(sys.argv[0]).resolve().parent

Expand Down
Loading

0 comments on commit 9ab63a3

Please sign in to comment.