-
Notifications
You must be signed in to change notification settings - Fork 3
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
layout db: Entries created using the LTF interface are not always editable with the python interface #20
Comments
Just to be precise, components are not "created" through that interface, but https://bao.chimenet.ca/layout/add_component.php . The error is surprising because almost all (maybe most) |
Confirmed, this is the bug in the code trying to change the name of the component. nothing wrong with that component itself. Question: |
@mondana I am not changing any names. You asked for an example of the bug that I encountered in the past, and that's what I am showing here. I happened to have this example saved, which is why I am showing it. Please ignore the function name |
To summarize, if you try to add a You also won't be able to add a Again, this is a general issue, not specific just to |
I just added a connection from |
This gives you 32 FSA connecctions on one side and LNA connections on the other side. Maybe try severing the LNA connection. |
It doesn't work - I am unable to sever the
I never have a problem for components that are created using python ( For the Outriggers, we're going to be creating a large number of components, making connections, adding properties, etc..., so this all needs to be scripted. |
I just tried to break the connection from allenby_cylinder <-> LNA2643C in Python and it worked. Original connexion created in LTF, parts created in web interface. Here is what I used:
So can you try the code above and give an example that does not work for you along with the error and a particular line. Please do not use scripts like |
When I can find some free cycles, I will try your example and report back. One obvious difference that I am noticing, based on the layout db web output, is that your code seems to add an end date for the connexion but doesn't remove it permanently from the SQL database. My code will deactivate the connexion and delete the entry from the database. Here's a code snippet that I would use in my
We are both using the |
aha! You should not remove connections. You always put an end date to a connection. The database is based on an event-driven design, so we can retrieve the history of a component. If you remove from the database the history of that component is lost and that is undesirable. |
In the Layout DB, it is not always possible to edit certain fields using the python interface (
peewee
) if they were created using the LTF interface.For example, see the entry with component name
allenby_cylinder
created by @mondana using the LTF text interface. It is not possible to add/sever connexions for this entry (and others created using LTF). This is just one example, but this issue is general.If the components are added using python (
peewee
), then there is no issue.The text was updated successfully, but these errors were encountered: