-
Notifications
You must be signed in to change notification settings - Fork 43
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
2107 idf plot selection #2145
2107 idf plot selection #2145
Conversation
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.
I have problems running it from the installer on Mac.
Traceback (most recent call last):
File "sasview.py", line 15, in
File "sas/qtgui/MainWindow/MainWindow.py", line 113, in run_sasview
File "sas/qtgui/MainWindow/MainWindow.py", line 44, in init
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "sas/qtgui/MainWindow/GuiManager.py", line 35, in
ModuleNotFoundError: No module named 'sas.qtgui.Utilities.Reports'
[93029] Failed to execute script 'sasview' due to unhandled exception: No module named 'sas.qtgui.Utilities.Reports'
[93029] Traceback:
Traceback (most recent call last):
File "sasview.py", line 15, in
File "sas/qtgui/MainWindow/MainWindow.py", line 113, in run_sasview
File "sas/qtgui/MainWindow/MainWindow.py", line 44, in init
File "PyInstaller/loader/pyimod02_importers.py", line 493, in exec_module
File "sas/qtgui/MainWindow/GuiManager.py", line 35, in
ModuleNotFoundError: No module named 'sas.qtgui.Utilities.Reports'
Does it work on Windows?
I guess there maybe some path missing in pyinstaller file.
@wpotrzebowski I think @krzywon has fixed this in the as-yet-unmerged #2139 |
@wpotrzebowski Try it now? |
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.
Looks good, minor issues raised
if self.data is not None: | ||
if len(self.data) == 2: |
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.
can be squeezed into one line
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.
Another comment on these two lines -> typing only gives a suggestion of what should be passed to a method, but isn't a requirement. If self.data is a string two characters long, what happens?
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.
Its a suggestion in the same way that a police officer might suggest that you've had too much to drink and that its time to go home.
Indeed, it seems to work now (from installer) |
Same behaviour on Windows (on sending a file to the corfunc perspective)
|
@rozyczko @wpotrzebowski Ah, this was broken by the merge from main to fix the installer. |
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.
and it works now! |
@wpotrzebowski @smk78 Better? |
Window scalling works fine now. Two potential issues that arised while testing
|
Legend was deleted, as there's only one curve on the IDF plot. Axis label is not missing, it's just a long way to the left - it shows on my screen, which is perhaps wider than yours - if you have a sensible fix for it let me know.
Ooer, I'll look at that,, think its probably about packaging the CSS. I thought @krzywon's fix should have sorted that. |
I think the CSS file needs to be put somewhere more central than |
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.
Functionality test on W10/x64 using a 1920x1080 monitor.
When I first brought up the Corfunc perspective the bottom of the perspective was somewhere in the midst of the Lamellar Parameters dialog and I had to stretch the perspective downwards, which I was a little surprised about as there was plenty of screen real estate.
I note the (missing) IDF legend has now been removed completely. Which is fine. But as others have noted, the y-axis label is not initially displaying correctly:
However, stretching the perspective window to the right fixes this.
Saving extrapolated & transformed data to file worked fine.
Generating a report worked fine, and looked fine in the report dialog window, but the actual output is real ugly and needs looking at.
corfunc_report.pdf
At some point in what I was doing this appeared in the Console, possibly when I was 'reporting':
WARNING: getSize: Not a float '100%'
Yeah, it's either that or no scrolling. Unless you can think of a way of coercing the window to a good size. |
CSS file should now be included in the installers |
That's the html to pdf converter not liking how the width of the images is specified. |
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.
@wpotrzebowski this should fix the report issue you had
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.
Testing latest changes on W10/x64. Plots are now separated in the report.
SasView can find the css file now, but doesn't have permission to read it for some reason. |
…(source_file, target_directory)
Woooooo, finally, reports bugs all squashed! |
Goal: add the IDF plot as a tab