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
The GUI usesthe diagnostics property - which also contains some general information about partitioning. I guess that's also the one you would access as an API user. Note that the information therein is not meant for automated consumption in scripts (note also the weird list-of-dict structure) and is not guaranteed to be stable!
This is strange! There's no file named base.py in my repository
That's because the base.py file has recently been broken up into more but shorter files. If you update to the current master, you too should have a base.py file.
If you update to the current master, you too should have a base.py file.
The current master doesn't have the base.py file. Also, the link points to a "tree", I think. What about I just copypaste the entire thing and replace the smaller files with a single base.py file? Wouldn't that be the simplest way to get it done?
If you update to the current master, you too should have a base.py file.
was wrong, because the current version no longer has the base.py file. But you can find the same classes in that directory of smaller files (you can have a look at the __init__.py file as a kind of "index" of the package).
Also, the link points to a "tree", I think
A tree is how git maps directories to its internal data structures. So any link to a directory on github will be a link to a tree. In this case, the link is actually not a tree, but a "blob", which is how git stores specific versions of files (in this case, version 05edd...).
What about I just copypaste the entire thing and replace the smaller files with a single base.py file? Wouldn't that be the simplest way to get it done?
While it may be simple, it will undo my work of actually separating them. We try to keep files small in order to make classes and functions easier findable. It is hard to navigate files that are longer than a few hundred lines.
Activity
sk1p commentedon Feb 21, 2020
The GUI uses the diagnostics property - which also contains some general information about partitioning. I guess that's also the one you would access as an API user. Note that the information therein is not meant for automated consumption in scripts (note also the weird list-of-dict structure) and is not guaranteed to be stable!
sayandip18 commentedon Apr 5, 2020
Found a typo in line 242
sk1p commentedon Apr 5, 2020
Nice catch, feel free to open a PR!
sayandip18 commentedon Apr 5, 2020
This is strange! There's no file named base.py in my repository. Do I have to create the entire file?
sk1p commentedon Apr 6, 2020
That's because the
base.pyfile has recently been broken up into more but shorter files. If you update to the current master, you too should have abase.pyfile.sayandip18 commentedon Apr 6, 2020
The current master doesn't have the
base.pyfile. Also, the link points to a "tree", I think. What about I just copypaste the entire thing and replace the smaller files with a singlebase.pyfile? Wouldn't that be the simplest way to get it done?sk1p commentedon Apr 6, 2020
Ah, sorry. This:
was wrong, because the current version no longer has the
base.pyfile. But you can find the same classes in that directory of smaller files (you can have a look at the__init__.pyfile as a kind of "index" of the package).A tree is how git maps directories to its internal data structures. So any link to a directory on github will be a link to a tree. In this case, the link is actually not a tree, but a "blob", which is how git stores specific versions of files (in this case, version
05edd...).If you are interested how trees, blobs etc. in git work, I can recommend the official documentation on git internal objects.
While it may be simple, it will undo my work of actually separating them. We try to keep files small in order to make classes and functions easier findable. It is hard to navigate files that are longer than a few hundred lines.