Repository navigation
Replies: 1 comment
This is a great starting point, I agree.
Here I'm not even sure if we need a separate file: if things are so short, possibly they can fit in the module defining the protocol, together with the If there is a single component which is much larger, though still very specific to the protocol, and not shared with others, we could name the would-be The only problem, which I guess is partly the starting point of these I would support the attempt to try to reorganize and deduplicate, trying to eliminate all the |
Uh oh!
There was an error while loading. Please reload this page.
It's universally agreed that Qibocal has a quite debatable structure of files and folders, which also contributes in the code duplication we find in several protocols.
I believe that a better and more readable structure of files in Qibocal will significantly reduce the amount of duplicated code and an easier navigation inside the project.
In this sense, I think we should rethink the definition of help modules, i.e. all the
utils.pyand organize stuffs (both per-protocol or global) better.In practice, what I want to suggest is the following rule of thumb:
utils.pyfile is relatively short (~200/300 lines of code), easy to navigate and to read, so is fine to keep everything inside a single file calledutils.pyprocessingorplottingoffittingoracquisition), each of this file trying to satisfy rule 1)For reference, see files in
ramseyandzz_interactionfolders.Similarly we should act on the global
protocols/utils.pyfile since now is too big with too much content and very different.I saw the content of this file and one suggestion might be to divide stuffs like:
constant_and_classes,physics,fitting,processing,statistic,plotAll reactions