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

Quick fix/suggestion - fix example script #122

Open
a-sunkari opened this issue Dec 26, 2024 · 0 comments
Open

Quick fix/suggestion - fix example script #122

a-sunkari opened this issue Dec 26, 2024 · 0 comments

Comments

@a-sunkari
Copy link

a-sunkari commented Dec 26, 2024

Just wanted to highlight an issue with the example script which can be easily fixed:

import CAD_to_OpenMC.assembly as ab

A=ab.Assembly('geometry.step')
ab.mesher_config['threads']=1
ab.mesher_config['tolerance']=1e-2
ab.mesher_config['angular_tolerance']=1e-2
A.run(h5m_filename='geometry.h5m',backend='stl2')

The line A=ab.Assembly('geometry.step') should instead be A=ab.Assembly('[geometry.step]'). Without these square brackets, the code interprets only the first letter of the file (i.e. "g") instead of the full file name, leading to errors.

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

1 participant