Comments (5)
I'm so sorry, I missed this!
- In the JSON file, when I put "decimal" or "integer" type for my parameter, it doesn't change anything, in the both cases it's an integer, is it normal ? Do i miss something ?
It looks like it will make an integer spinbox in both cases, which is not the intended behavior. I think I'll be able to address this soon.
- Can we put negative values in our integer field ? And so, can we precise a maximum and a minimum value in the JSON file for a specific parameter ?
Yes, right now it looks like it defaults to 0-0x7fffffff
(e.g. spinBox->setRange(0, 0x7fffffff);
), but if you add "min" and/or "max" parameters you can get around that. For example, here's a power spectral density display plugin config I've been messing around with
{
"name": "PyPSD",
"description": "Python Power Spectral Density display using matplotlib",
"tags": ["Python"],
"script": "plugin.py",
"type": "display",
"extra_paths": [],
"render_config": {
"asynchronous": true,
"hide_bit_offset_controls": true
},
"parameters": [
{
"name": "FFT Size",
"type": "integer",
"min": 16,
"max": 32768
},
{
"name": "FFT Number",
"type": "integer",
"min": 1
},
{
"name": "Sample Frequency (Hz)",
"type": "integer",
"min": 1
}
]
}
- When I try to add a boolean parameter in my JSON file and execute my plugin in Hobbits, I've always this error :
"Operator Plugin Error: Plugin 'test' reported an error with its processing: Other errors: Failed to parse arg 4" (here the arg 4 is of course my boolean, if i put more parameters, it will say 'arg 5' or 'arg 6')
Yes this is another bug in the configuration interface.
Thank you for reporting these! I think I wrote the documentation aspirationally and then never finished implementing stuff. I can try to get quick fixes for these soon.
from hobbits.
I think cef1055 fixes the bugs mentioned here, but I'm going to wait until I update the documentation and maybe do a little more improvement/validation before pushing a release. The release should come this weekend or next week.
from hobbits.
I just saw your answers, tanks a lot ! It will help.
from hobbits.
Alright, the fixes and additions should all be in 0.47.0
Let me know if anything else goes wrong or if you have any ideas about the python plugin interface.
from hobbits.
Thanks à lot ! I'll try it soon and keep you up to date
from hobbits.
Related Issues (20)
- Byte/offset navigation for large binaries HOT 1
- Keyboard navigation in the data view HOT 1
- Symbol Raster gradients
- Symbol Raster Presets (maybe for all displays/plugins?) HOT 1
- Increase max word size for Symbol Raster
- Conan install fails creating Makefile on Fedora 35 HOT 14
- Instance set by value does not appear in Kaitai Struct output HOT 5
- Display decimal integer and float representation at cursor HOT 1
- Auto-expand tree in Bit Containers view HOT 1
- hobbits-runner shouldn't need a display? HOT 3
- Copying hex from hex viewer HOT 2
- Kaitai Struct parsed output table missing 'value' column for some KSY files HOT 2
- analyzing Kaitai Structs fails on missing 'pkg_ressources' python module HOT 3
- Option to display offsets in hex HOT 2
- Allow raster width selection HOT 1
- No Mac build for 0.54.0? HOT 1
- Show kaitai enums
- Relative imports for kaitai structs do not work HOT 2
- Feature request: Support python-construct library HOT 1
- error: narrowing conversion of ‘-128’ from ‘int’ to ‘char’ [-Wnarrowing] HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hobbits.