t4_geom_convert.IntegrationTests package
Submodules
t4_geom_convert.IntegrationTests.test_mcnp_conversion module
Integration tests for MCNP conversion.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.do_conversion(mcnp_i, output_dir, conv_opts)
Perform the actual conversion from MCNP to T4.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.do_test_oracle(mcnp_i, tmp_path, mcnp, oracle, oracle_zero_tolerance)
Actually perform a conversion test, followed by an oracle test.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.get_options(mcnp_path, n_lines=50)
Detect custom CLI options in the first few lines of an MCNP file.
;param mcnp_path: the path to the MCNP file :type mcnp_path: py.path.LocalPath :returns: the parsed options, as a list.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.test_convert(mcnp_i, tmp_path)
Test conversion for all data files in the
datasubfolder.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.test_density_zeros(datadir, tmp_path)
Test that the the conversion of
density_zeros.imcnpproduces only one material.This input file contains two material cards, but the materials appear multiple times, with densities that differ only in the number of trailing zeros.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.test_extra_mcnp(extra_input, tmp_path, mcnp, oracle, oracle_zero_tolerance)
Test conversion + oracle for any MCNP input files provided via the –extra-mcnp-inputs CLI option.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.test_oracle(mcnp_i, tmp_path, mcnp, oracle, oracle_zero_tolerance)
Run the conversion and check the oracle for all data files in the
datasubfolder.
- t4_geom_convert.IntegrationTests.test_mcnp_conversion.test_parse_outside_points(datadir)
Test that
parse_outside_points()correctly returns the number of points outside the geometry.