-
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
Feature/parameter: Add parameter dialog #246
Conversation
c67b2c3
to
b1aa2cb
Compare
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, @buganini . Some items to change:
- Use C++ singleton for globals
- Use dynamic hierarchical toggles
- CI needs to be clean
Discussions:
Is it possible to have a simple unit test?
cpp/modmesh/view/RParameter.cpp
Outdated
namespace modmesh | ||
{ | ||
|
||
static int int64V = 5566; |
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 think the global static data should be managed by a singleton. The singleton will make it possible for testing in Python (pytest).
cpp/modmesh/view/RParameter.cpp
Outdated
static std::shared_ptr<pybind11::list> paramsList = nullptr; | ||
|
||
template <typename T> | ||
void addParam(const char *key, T *ptr) { |
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.
Would it be possible to store the parameter information in the hierarchical dynamic toggle:
Line 280 in 1bd0532
def test_get_value(self): |
More information about modmesh toggles:
modmesh/cpp/modmesh/toggle/toggle.hpp
Line 220 in 1bd0532
* The toggle system for modmesh. There are 3 types of toggles: |
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.
- Please add copyright notice to Python files under the
modmesh
package
modmesh/params.py
Outdated
@@ -0,0 +1,63 @@ | |||
from PUI.PySide6 import * |
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.
Please add license text.
clang-format/flake8 issues are fixed |
I merged the code so that we can move on. A follow up ticket #247 is filed. |
Requirement:
pip3 install QPUIQ==0.3