You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for the useful library.
I have been playing around with it in the terminal and I have suggestions for making it more user-friendly.
provide some form of top-level entry point so we don't have to rely on doing the xml parsing separately to then pass a node to the Device constructor, e.g. a parse_sdv_file(file_path) function.
populating __str__ and __repr__ with self.name would make the console experience much better.
At the moment when printing peripherals or registersI am seeing:
dev.peripherals
Out[27]:
[<pysvd.element.Peripheral at 0x2118e537af0>,
<pysvd.element.Peripheral at 0x2118e537a90>,
<pysvd.element.Peripheral at 0x2118cabc4f0>,
...]
p.registers
Out[32]:
[<pysvd.element.Register at 0x2118e379c70>,
<pysvd.element.Register at 0x2118e379040>,
<pysvd.element.Register at 0x21191b6dca0>,
...]
etc.
I can see most of the classes derivatives have a 'name' member (some don't though), we could discuss what the best approach is if you are open to it.
The text was updated successfully, but these errors were encountered:
@Guillaume227: Sorry for my long off-time. I use Github only for publishing the master/develop branches. So I didn't recognize your request. I agree with your argument, that the printout is not very user-friendly. Your welcome to fork and support this tiny project. As you can see, documentation #1 is also outstanding as my part.
Hello, thanks for the useful library.
I have been playing around with it in the terminal and I have suggestions for making it more user-friendly.
__str__
and__repr__
withself.name
would make the console experience much better.At the moment when printing peripherals or registersI am seeing:
Would be much nicer to see:
etc.
I can see most of the classes derivatives have a 'name' member (some don't though), we could discuss what the best approach is if you are open to it.
The text was updated successfully, but these errors were encountered: