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

get_metadata cannot import dvl_metadata_capture and will always raise an exception #11

Open
peterk87 opened this issue Jan 16, 2025 · 2 comments

Comments

@peterk87
Copy link

Hello,

In the get_metadata function, the dvl_metadata_capture cannot be resolved.

GenoFLU/bin/genoflu.py

Lines 168 to 170 in 962c834

def get_metadata(self,):
import dvl_metadata_capture
sample_name = self.sample_name

As such, the get_metadata function will always raise an exception.

GenoFLU/bin/genoflu.py

Lines 374 to 377 in 962c834

try:
genoflu.get_metadata()
except:
pass

@stuber
Copy link
Contributor

stuber commented Jan 16, 2025 via email

@peterk87
Copy link
Author

There's no error since exception handling is suppressed with try: <code>; except: pass in the block of code after if __name__ == "__main__":.

PyCharm shows that there is no module named dvl_metadata_capture

Image

genoflu.py script would be called directly.

After modifying the script to log the exception, it outputs No module named 'dvl_metadata_capture'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants