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

[BUG] - What is "Self" keyword? #277

Open
SeongHeeHong opened this issue Nov 6, 2024 · 1 comment
Open

[BUG] - What is "Self" keyword? #277

SeongHeeHong opened this issue Nov 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SeongHeeHong
Copy link

Now I'm testing reverse input.
However, I show the error message for 'Self' keyword.
Error message like this in command window,
File "D:\KFE\tool\GEOUNED\GEOUNED-main\testing\MCNP_Reverse\run1.py", line 7, in
geo.export_cad(
TypeError: CsgToCad.export_cad() missing 1 required positional argument: 'self'

I can not find this keyword in the user's guide.
What is this?

And, how to definition material on each cell?
Would you send some examples?

@SeongHeeHong SeongHeeHong added the bug Something isn't working label Nov 6, 2024
@psauvan
Copy link
Member

psauvan commented Nov 6, 2024

It seems your are not calling correclty the "export_cad()" modules.

with the script geouned you will be able to run the geouned code as a command line geouned -i configfile --reverse (use the reverse option to convert CSG to CAD).

Example of json CSG to CAD config files can be found in the folder test

In the CSG to CAD confing file you will have to define the size of the region containing your geometry (the "bounding_box" keyword). The parameters of the box are xmin, ymin, zmin, xmax, ymax, zmax (with mm as units)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants