-
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
1992 corfunc perspective needs export and report capabilities #2065
1992 corfunc perspective needs export and report capabilities #2065
Conversation
…alous exception handler
I have also moved some stuff that was split into 3 functions into 1, as it made following the code pretty hard
…ly now unnescessary
Final bits are now done - @smk78, @wpotrzebowski and whoever else is interested. Most of my additions are now in a folder called reports. I have now included a couple more packages, which I've added to requirements.txt, but nowhere else:
|
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.
Just a couple of minor optional stylist suggestions
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 cleans up perspectives quite a bit and does what it says it does by adding report capabilities to the corfunc perspective. I'd suggest looking at the one error I saw, otherwise, I have a number of suggestions, but those could always be TODOs
.
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 is ready to be merged. The two outstanding suggestions I have should be documented in their own feature requests, assuming they aren't implemented here.
.github/workflows/release.yml
Outdated
@@ -74,7 +74,8 @@ jobs: | |||
python -m pip install numpy scipy==1.7.3 docutils "pytest<6" sphinx unittest-xml-reporting | |||
python -m pip install tinycc h5py sphinx pyparsing html5lib reportlab==3.6.6 pybind11 appdirs | |||
python -m pip install six numba mako ipython qtconsole xhtml2pdf unittest-xml-reporting pylint | |||
python -m pip install qt5reactor periodictable uncertainties debugpy | |||
python -m pip install qt5reactor periodictable uncertainties debugpy dominate |
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.
At least on windows, this also needs importlib_resources
and html2text
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.
OK, yeah, that needs to be done. Will fix when I'm back at work.
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.
Fixed in latest push, if you're happy with it, merge it, I think its 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.
thanks, go ahead
Yeah, there's an open issue for that. Unify report blah blah something, I'm
away so can't give you the number right now.
…On Fri, 8 Jul 2022, 09:47 Piotr Rozyczko, ***@***.***> wrote:
Currently, the two reports: from Fitting and from Corfunc look rather
different, having non-matching font, layout, section names etc.
Should we strive to be at least a bit more consistent?
[image: repors]
<https://user-images.githubusercontent.com/8266281/177954489-4346a646-2017-4b6f-b6db-69b5269a7ab5.png>
—
Reply to this email directly, view it on GitHub
<#2065 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACKU4SX46AUFP3FZFH5NX6DVS7TINANCNFSM5YJ5ZIBQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is an early pull request for part of my implementation of reports for corfunc (issue #1992).
As it stood, each perspective was treated differently, the main content of this pull request is a base class for all the perspectives that contains functionality that they should all support. This includes the getReport method.
As you will see, I have left many TODO notes in the new class, and in some of the perspectives too. The plan is to implement these at the end dealing with the current issue. These are mostly renaming, consistent use of getters/setters, removing some unused bits of code etc, it should be pretty easy now that they reference a common base class.
There is one TODO note that would be part of the task of disentangling GUI stuff from the rest of the code.
Additionally, I have converted a list of objects into a named (and typed) tuple called ReportData, and added some typing surrounding it.