Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring and testing of Interactor classes #1570

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3f4d33b
Incomplete refactoring of HPathInteractor
swsrkty Sep 28, 2022
83670e9
Refactoring of Interactor classes and testing in plot module
swsrkty Oct 11, 2022
fb8532c
Testing Interactor classes
swsrkty Oct 12, 2022
4d7324b
Testing side, linear view and moving plotting path to MySideViewFigur…
swsrkty Oct 17, 2022
ebd73d0
Plotting path using pathpatch
swsrkty Oct 17, 2022
7e0b65d
Fixing class names and other errors
swsrkty Oct 18, 2022
a3dccc5
Fixing errors in testing
swsrkty Oct 18, 2022
ba27ad9
Fixing errors
swsrkty Oct 19, 2022
0eaec8d
Refactoring and testing in top, side and linear views
swsrkty Oct 26, 2022
60e98d0
Fixing errors
swsrkty Oct 27, 2022
ec41ade
Prototype CLI tool
swsrkty Oct 27, 2022
efde3cc
Fixing errors in refactoring
swsrkty Nov 1, 2022
8f94841
Fixing more errors in refactoring
swsrkty Nov 2, 2022
659fc7a
CLI tool with plotting flightpath
swsrkty Nov 2, 2022
9431884
update
joernu76 Nov 3, 2022
cc913b1
Merge remote-tracking branch 'upstream/joern7' into Refactor-interact…
swsrkty Nov 6, 2022
bdb4910
Fixing errors in refactoring SideView
swsrkty Nov 6, 2022
cfd0019
Fixing errors in the previous commit
swsrkty Nov 6, 2022
3f6d44b
Removing the use of WaypointsTableModel in plot module
swsrkty Nov 7, 2022
71ccd94
update
joernu76 Nov 7, 2022
fedcd65
Fixing plotting of labels while testing in plot module
swsrkty Nov 9, 2022
107acc2
Setting title for linear view for testing in plot module
swsrkty Nov 9, 2022
ba3079f
CLI tool script
swsrkty Nov 10, 2022
82fa1a3
Fixing an error in calling draw method in plot module
swsrkty Nov 10, 2022
9cd16a2
Adding config path parameter to the CLI tool
swsrkty Nov 11, 2022
a7e4083
Documentation for CLI tool
swsrkty Nov 11, 2022
cbe9208
Changing the directory of autoplot module
swsrkty Nov 14, 2022
ec7e4e5
Removing files related to the autoplot CLI tool
swsrkty Nov 16, 2022
d7a6f4f
Removing plot module
swsrkty Nov 16, 2022
b4143c0
Adding plot module
swsrkty Nov 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions mslib/msui/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,27 @@
except IOError:
logging.error(f'"{MSUI_SETTINGS}" can''t be created')

MSS_AUTOPLOT = os.getenv('MSS_AUTOPLOT', os.path.join(MSUI_CONFIG_PATH, "mss_autoplot.json"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a ToDo, # ToDo refactor to a function


# We try to create an empty MSUI_SETTINGS file if not existing
# but there can be a permission problem
if '://' in MSS_AUTOPLOT:
dir_path, file_name = fs.path.split(MSS_AUTOPLOT)
try:
_fs = fs.open_fs(dir_path)
if not _fs.exists(file_name):
with _fs.open(file_name, 'w') as fid:
fid.write("{}")
except fs.errors.CreateFailed:
logging.error(f'"{MSS_AUTOPLOT}" can''t be created')
else:
if not os.path.exists(MSS_AUTOPLOT):
try:
with open(MSS_AUTOPLOT, 'w') as fid:
fid.write("{}")
except IOError:
logging.error(f'"{MSS_AUTOPLOT}" can''t be created')

WMS_LOGIN_CACHE = {}
MSC_LOGIN_CACHE = {}

Expand Down
Loading