-
Notifications
You must be signed in to change notification settings - Fork 84
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
Gsoc2024 rebased autoplot #2547
Conversation
update msui mainwindow based on left treewidget, download from operations implemented completely and prcess dialogs added, update msui mainwindow based on left treewidget,
@@ -165,11 +271,13 @@ def draw(self, flight, section, vertical, filename, init_time, time, url, layer, | |||
image_io = io.BytesIO(img.read()) | |||
img = PIL.Image.open(image_io) | |||
self.myfig.draw_image(img) | |||
self.myfig.fig.savefig(f"{flight}_{layer}_{no_of_plots}.png") | |||
t = str(time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToDo: t as extra var seems not needed
That can be looked up on a refactoring. Some method have too much lines. Some code is duplicated.
mslib/utils/mssautoplot.py
Outdated
|
||
def get_op_id(token, mscolab_server_url, curr_op): | ||
logging.debug('get_recent_op_id') | ||
if verify_user_token(mscolab_server_url, token): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToDo: refactor similiar to
https://github.com/Open-MSS/MSS/pull/2521/files#diff-8bb1b53508f9fe252a80649575f92b7aa4756be8dda54c217a7c1d9063d6b0c5
This should be done after the merge into develop. It is also a question if we need that here.
* rename cli_tool back to main * renamed dock to apd * refactored session and response names * improve comment
ToDo: On Sideview or Linearview the operation/flights did not reload updaten on clicking in the navigation of the autoplot widget |
|
When not logged in or not the flightpath loaded, errors are shown on the terminal. A user should get shown what is missing. e.g. you need to login to the server to access the operations or/and open the flighttracks. addressed by: |
#2554) we have to use mainwindow instead of parent
When not using a localhost mscolab server I ran into. It seems not to use the user defined mscolab_server_url
|
After removing the file it does. We maybe should have done an update in our configs once a different mscolab server is used. This can become later improved. |
When using a http_auth protected mscolab server mssautoplot can't login. |
|
mslib/utils/mssautoplot.py
Outdated
self.config["predefined_map_sections"][section]["CRS"].lower()) | ||
except KeyError as e: | ||
print(e) | ||
sys.exit("Invalid SECTION and/or CRS") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToDo: don't sys.exit(), this will also end msui when it is called by the msui - autoplot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be raise SystemExit(...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mslib/utils/mssautoplot.py
Outdated
if filename != "" and filename == flight: | ||
self.read_operation(flight, username, password, mscolab_server_url) | ||
elif filename != "": | ||
self.read_ftml(filename) | ||
|
||
def read_ftml(self, filename): | ||
dirpath = "./" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ToDo: we should be able to pass a dir and fall back can be the local dir.
This blocks its usage from the autoplot dockingwidget, when the ftml data file is not found.
We maybe should store the dir of the file in the mssautoplot.json and not only the filename.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the cli should have a parameter to bypass directories defined in the mssautoplot.json for ftml file, and on default we should store fullpath of the file.
---- Co-authored-by: ReimarBauer <rb.proj@gmail.com>
@joernu76 this is an improved version of the origin GSOC project. There are still some ToDos, but they should be done in different PR. |
Purpose of PR?:
This is the current GSOC Project by PreetamSundarDas rebased to develop.
I do mark in the PR what we need to change on this Branch before it can be merged.
Feel free to help with the ToDo's