Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #85 from fusion-energy/develop
Browse files Browse the repository at this point in the history
adds citation file
  • Loading branch information
shimwell authored Oct 30, 2021
2 parents 41bd3a1 + 6861474 commit 5ae6f52
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Shimwell"
given-names: "Jonathan"
orcid: "https://orcid.org/0000-0001-6909-0946"
- family-names: "Delaporte-Mathurin"
given-names: "Rémi"
orcid: "https://orcid.org/0000-0003-1064-8882"
title: "openmc-dagmc-wrapper. A Python package for performing standard neutronics simulations with OpenMC and DAGMC"
version: 0.2.4
date-released: 2021-10-27
url: "https://github.com/fusion-energy/openmc-dagmc-wrapper/tree/develop"
4 changes: 2 additions & 2 deletions openmc_dagmc_wrapper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

def create_material(material_tag: str, material_entry):
if isinstance(material_entry, str):
openmc_material = nmm.Material.from_library(name=material_entry, material_id=None
).openmc_material
openmc_material = nmm.Material.from_library(
name=material_entry, material_id=None).openmc_material
elif isinstance(material_entry, openmc.Material):
# sets the material name in the event that it had not been set
openmc_material = material_entry
Expand Down

0 comments on commit 5ae6f52

Please sign in to comment.