Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_molecule(name, orient=True):
"""
Returns a Molecule object from the available stored objects.
"""
fname = get_file_name("molecules", name)
if not fname:
raise OSError("File: {}/{} not found".format("molecules", name))
return Molecule.from_file(fname, orient=orient)