fusion-energy / openmc-plasma-source

Creates a plasma source as an openmc.source object from input parameters that describe the plasma
MIT License
25 stars 11 forks source link

added inital files for conda package #59

Closed shimwell closed 2 years ago

shimwell commented 2 years ago

This PR adds files needed to produce a conda package

I also made a small change to one of the tests

# old 
assert pytest.approx(sum(tokamak_source.strengths), 1)

# new
assert pytest.approx(sum(tokamak_source.strengths)) == 1
RemDelaporteMathurin commented 2 years ago

Looks good! Any particular reason for the change in the test? I think the old version has the same behaviour

shimwell commented 2 years ago

The old version of the test was failing over here.

I'm wondering if I have an older version of pytest or something else.

I can put that change back if you like