Skip to content
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

Keep na arch alive 2 #474

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Keep na arch alive 2 #474

merged 3 commits into from
Jun 14, 2024

Conversation

lsschmid
Copy link
Collaborator

Description

This fixed the problem that for the Hybridmapper, using the Python bindings it can happen that the architecture object is deleted by the garbage collector, loosing the reference for the mapper. Now it is kept alive using the keep_alive functionality of PyBind.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@lsschmid lsschmid force-pushed the keep-na-arch-alive-2 branch from e0930d5 to ae480d6 Compare June 14, 2024 11:21
@lsschmid lsschmid added python Anything related to Python code fix Anything related to bugfixes labels Jun 14, 2024
@lsschmid lsschmid force-pushed the keep-na-arch-alive-2 branch from e5ccaa7 to ae480d6 Compare June 14, 2024 11:26
@lsschmid
Copy link
Collaborator Author

I'm not sure. Clion tells me that mqt-core has a newer version (which is true). But when I commit the exter link to mqt-core, it modifies the .pre_commit. Not sure why, but for this PR it also doesn't really matter.

@burgholzer
Copy link
Member

I'm not sure. Clion tells me that mqt-core has a newer version (which is true). But when I commit the exter link to mqt-core, it modifies the .pre_commit. Not sure why, but for this PR it also doesn't really matter.

The best thing to do in cases like these is to simply not commit the submodule change.
If you want to make sure that you are running the same submodule version as on main, you can do

git submodule update --init --recursive 

@burgholzer burgholzer enabled auto-merge (squash) June 14, 2024 11:50
@burgholzer burgholzer merged commit cb55d55 into main Jun 14, 2024
24 checks passed
@burgholzer burgholzer deleted the keep-na-arch-alive-2 branch June 14, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Anything related to bugfixes python Anything related to Python code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants