Skip to content

multiple materials #13

Description

@shimwell

we could make a streamlit app like this, it could allow multiple materials to be plotted

import streamlit as st
import pandas as pd
import numpy as np
import openmc

area = st.text_area('material')

loc={}
exec(area, globals(), loc)#, {'openmc':openmc})#, {'openmc': openmc, 'openmc.Material': openmc.Material})#, globalsParameter)#, localsParameter)

print(loc)

materials=[]
for key, value in loc.items():
    if isinstance(value,openmc.Material):
        materials.append(value)

print('all materials', materials)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions