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

Fix Typo in InVesselBuild and Incorporate CAD-to-DAGMC in Testing #86

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parastell/invessel_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def export_cad_to_dagmc(self, filename='dagmc', export_dir=''):

for name, component in self.Components.items():
model.add_cadquery_object(
component, material_tags=[self.radial_build[name]['mat_tag]']]
component, material_tags=[self.radial_build[name]['mat_tag']]
)

export_path = Path(export_dir) / Path(filename).with_suffix('.h5m')
Expand Down
7 changes: 2 additions & 5 deletions tests/test_invessel_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,11 @@ def test_ivb_exports(invessel_build):
invessel_build.calculate_loci()
invessel_build.generate_components()
invessel_build.export_step()
"""
CAD-to-DAGMC export does not currently work; might be an incompatibility
between CadQuery and CAD-to-DAGMC versions.

invessel_build.export_cad_to_dagmc()
"""

assert Path('plasma.step').exists()
assert Path('sol.step').exists()
assert Path('component.step').exists()
assert Path('dagmc.h5m').exists()

remove_files()