Closed and-ratajski closed 1 year ago
Hi, Fixed in the main branch.
Hi @dogukankaratas , So does it mean that this issue is resolved (fixed, tested, deployed) and soft pushed to pip repository?
By the way - what is the release strategy? Each fix would be available as new release or do you plan to group them and release together (milestones)?
Hi @and-ratajski, every update is available in main branch immediately after code review. We don't publish every change on pypi.org page. We release the client when there is substantial work done. No milestones are set. This is same for both RFEM and RSTAB. But all development is done in RFEM. Then after there is considerable work done, relevant changes are copied, since RSTAB functions are subset of RFEM's.
Describe the bug Whenever one tries to create a new model after closing a new one (
model = Model(True, "model_name")
), following Exception gets thrown:It is because whenever a new Model instance is requested, it also creates a new suds Client for the same name and url, here:
https://github.com/Dlubal-Software/RSTAB_Python_Client/blob/14b06d28bc77731d72fe84cdaf6e71cad82161cc/RSTAB/initModel.py#L123-L127
And if there is no other workaround but to entirely close (clean) python runtime and start from the begging...
To Reproduce Steps to reproduce the behavior:
model = Model(True, "model_name")
).model = Model(True, "new_model_name")
) in the same python runtimeAt this point you should see the exact same error.
Expected behavior Creating a new model while maintaining connection to RSTAB/RFEM server.
Desktop (please complete the following information):
Additional context Trying to compare calculations using the same model vs. creating a new model each time. If there is such a need I can provide my testing script.