Skip to content

Commit

Permalink
dataexplorer add thermal table
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokumura committed Feb 8, 2024
1 parent 5ff6581 commit 69dfa67
Show file tree
Hide file tree
Showing 22 changed files with 1,357 additions and 445 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,5 @@ exfor_dictionary/
endflib_sql/
sql/
uninstall.txt
config.py
config.py
submodules/
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# dataexplorer2
## History
March 2021 first commit
June 2021 production version
Aug 2022 add new libraries (tendl.2021 and jendl5.0:)
March 2023 2nd major release
# nds.iaea.org/dataexplorer

The IAEA Nuclear Reaction Data Explorer is an open-source project to visualize the scientific and public nuclear reaction data. We provide pre-processed evaluated nuclear data libraries and a continually-updated EXFOR dataset alongside powerful analytic and visualization tools to the community. Our aim is to help developments nuclear engineering by enhancing the understanding of nuclear physics, and improvements of the quality of nuclear data.


# Build Data Explorer locally

* 1.

## Download formatted datasets
The EXFOR data were generously compiled by NRDC. We gratefully acknowledge the Authors, Originating and Submitting laboratories of the numerical data published in the publication and the Compilers who put metadata into EXFOR format.

## Readme
This is a major second release of the Dash/Plotly based web application for the dissemination and visualizing of [TALYS-Related Software and Databases](https://nds.iaea.org/talys/). The application will be available at [dataexplorer](https://nds.iaea.org/dataexplorer/).


## History
March 2021 first commit
June 2021 production version
Augst 2022 add new libraries (tendl.2021 and jendl5.0:)
March 2023 2nd major release
January 2024 Release for the production as dataexplorer version 2.0
4 changes: 1 addition & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@

if __name__ == "__main__":
if DEVENV:
app.run_server(
host="0.0.0.0", use_reloader=True
)
app.run_server(host="0.0.0.0", use_reloader=True, debug=True)
# app.run_server(
# host="127.0.0.1", debug=True, dev_tools_prune_errors=False, use_reloader=True
# )
Expand Down
25 changes: 22 additions & 3 deletions man.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
manual = dcc.Markdown(
"""
This site is aiming to mine data from evaluated nuclear data libraries (ENDFTABLES) and EXFOR (EXFORTABLES_py).
This site is aiming to mine data from evaluated nuclear data libraries (ENDFTABLES) and EXFOR datasets (EXFORTABLES_py). Previous version of dataexplorer with libraries (ENDFTABLES and EXFORTABLES) is accessible via [dataexplorer-2022](https://nds.iaea.org/dataexplorer2022/).
There are 3 main selections for data plotting and retrieval.
##### **1. Cross sections**
Expand Down Expand Up @@ -96,8 +97,26 @@
mail: <[email protected]>
[Terms of Use](https://nucleus.iaea.org/Pages/Others/Terms-Of-Use.aspx)
[Terms of Use](https://www.iaea.org/about/terms-of-use)
""",
dangerously_allow_html=True,
)





table_desc_thermal = dcc.Markdown(
"""
##### **Column descriptions **
This table contains cross-section data near thermal energy (2.53E-8 MeV).
- **Entry Id**: The entry (5 digits), subentry (3 digits), and pointer (1 digit) number taken from EXFOR, formatted as EEEEE-SSS-P.
- **Author**: The name of the first author of the publication.
- **Year**: The publication year of the main publication in `REFERENCE` field in EXFOR.
- **SF4**: EXFOR's reaction subfield 4 (SF4) representing reaction product(s). For example, the 235U(n,g) reaction produces 236U as a reaction product.
- **SF8**: EXFOR's reaction subfield 8 (SF8) indicating modifiers. The list of modifiers can be found [here](https://github.com/IAEA-NDS/exfor_dictionary/blob/b3d79674ea1b55b7c9e889b52cf8dd2e370b5550/src/exfor_dictionary/latest.json#L19984). In many cases, a null value in SF8 indicates that the measurements were done in the monoenergetic environment (or corrected), while `MXW` or `SPA` in SF8 mean the "Maxwellian average" or "Spectrum average", respectively.
- **SF9**: EXFOR's reaction subfield 4 (SF4) representing data types. For example, `DERIV` means Derived data which was not directory measured in the experiment. The list of data types can be found [here](https://github.com/IAEA-NDS/exfor_dictionary/blob/b3d79674ea1b55b7c9e889b52cf8dd2e370b5550/src/exfor_dictionary/latest.json#L20337C24-L20337C50).
"""
,dangerously_allow_html=True
)
273 changes: 270 additions & 3 deletions modules/exfor/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
import json
import os
import pandas as pd
import requests

from exfor_dictionary.exfor_dictionary import Diction
from config import MAPPING_FILE, EXFOR_DICTIONARY, MASTER_GIT_REPO_PATH
from config import EXFOR_DICTIONARY, MASTER_GIT_REPO_PATH, MASTER_GIT_REPO_URL, HEADERS

from submodules.exfor.queries import (
get_exfor_bib_table,
Expand All @@ -29,8 +30,274 @@
number_of_reactions = len(reactions_df)


with open(MAPPING_FILE) as map_file:
MAPPING = json.load(map_file)
MAPPING = {
"top_category":
{
"SIG": "Cross Section (SIG)",
"DA": "Angular Distribution (DA)",
"DE": "Energy Distribution (DE)",
"FY": "Fission Yield(FY)",
"DDX": "Double Differential Cross Section (DA/DE)",
"KE": "Kinetic Energy (KE)",
"RES": "Resonance Parameter",
"NU": "Neutron (NU)",
"TTY": "Tick Target Yield (TTY)",
"Others": "Others"
},
"SF6": {
"AG": {
"description": "Symmetry coefficient",
"top_category": "Others"
},
"AH": {
"description": "Asymmetry coefficient",
"top_category": "Others"
},
"AKE": {
"description": "Average kinetic energy",
"top_category": "KE"
},
"ALF": {
"description": "Alpha = capture/fission cross-section ratio",
"top_category": "Others"
},
"AMP": {
"description": "Scattering length",
"top_category": "Others"
},
"AP": {
"description": "Most probable mass of fission-fragments",
"top_category": "FY"
},
"ARE": {
"description": "Resonance-area",
"top_category": "RES"
},
"D": {
"description": "Average level-spacing",
"top_category": "RES"
},
"DA": {
"description": "Angular Distribution (DA)",
"top_category": "DA"
},
"DA2": {
"description": "Double-diff. by angle (for quadruple-diff cs only)",
"top_category": "DDX"
},
"DA/DE": {
"description": "Double-diff. cross section",
"top_category": "DDX"
},
"DE": {
"description": "Energy Distribution (E)",
"top_category": "DE"
},
"DE2": {
"description": "Double-diff. by energy (for quadruple-diff.cs only)",
"top_category": "DDX"
},
"DEN": {
"description": "Differential with incident energy",
"top_category": "DE"
},
"DP": {
"description": "Differential with lin.momentum of outgoing particles",
"top_category": "Others"
},
"DT": {
"description": "Diff.with 4-momentum transfer squared of outg.particles",
"top_category": "Others"
},
"EN": {
"description": "Resonance-energy",
"top_category": "RES"
},
"ETA": {
"description": "Average neutron yield per nonelastic event",
"top_category": "Others"
},
"FM": {
"description": "Product of polarization and cross section",
"top_category": "SIG"
},
"FY": {
"description": "Fission Yield",
"top_category": "FY"
},
"INT": {
"description": "Cross-section integral over incident energy",
"top_category": "SIG"
},
"IPA": {
"description": "Cs integrated over partial angular range",
"top_category": "SIG"
},
"IPP": {
"description": "Cs integrated over partial momentum range",
"top_category": "SIG"
},
"J": {
"description": "Spin J",
"top_category": "RES"
},
"KE": {
"description": "Kinetic Energy (KE, AKE)",
"top_category": "KE"
},
"KEM": {
"description": "Temperature of Maxwellian distr.of outgoing particles",
"top_category": "EN"
},
"KEP": {
"description": "Most probable kinetic energy of outgoing particle",
"top_category": "KE"
},
"KER": {
"description": "Kerma factor",
"top_category": "Others"
},
"L": {
"description": "Angular momentum L",
"top_category": "RES"
},
"LD": {
"description": "Level-density",
"top_category": "Others"
},
"LDP": {
"description": "Level-density parameter",
"top_category": "Others"
},
"MLT": {
"description": "Multiplicity (particle yield per event)",
"top_category": "FY"
},
"NU": {
"description": "Fission-neutron yield, nu-bar",
"top_category": "NU"
},
"PHS": {
"description": "Reich-Moore phase",
"top_category": "SIG"
},
"PN": {
"description": "Pn-value or delayed neutron emission probability",
"top_category": "NU"
},
"POL": {
"description": "Polarization",
"top_category": "SIG"
},
"PTY": {
"description": "Parity",
"top_category": "SIG"
},
"PY": {
"description": "Product yield",
"top_category": "TTY"
},
"RAD": {
"description": "Scattering radius",
"top_category": "Others"
},
"RAT": {
"description": "Ratio",
"top_category": "Others"
},
"RED": {
"description": "Reduced",
"top_category": "Others"
},
"RI": {
"description": "Resonance integral",
"top_category": "SIG"
},
"RYL": {
"description": "Reaction yield",
"top_category": "TTY"
},
"SCO": {
"description": "Spin cut-off factor",
"top_category": "Others"
},
"SGV": {
"description": "Thermonuclear reaction rate",
"top_category": "Others"
},
"SIF": {
"description": "Self-indication function",
"top_category": "Others"
},
"SIG": {
"description": "Cross Section (SIG)",
"top_category": "SIG"
},
"SPC": {
"description": "Intensity of discrete gamma-lines",
"top_category": "Others"
},
"STF": {
"description": "Strength function",
"top_category": "Others"
},
"STR": {
"description": "Strength",
"top_category": "Others"
},
"SUM": {
"description": "Sum",
"top_category": "Others"
},
"SWG": {
"description": "Statistical weight g",
"top_category": "Others"
},
"TEM": {
"description": "Nuclear temperature",
"top_category": "KE"
},
"TKE": {
"description": "Total kinetic energy",
"top_category": "KE"
},
"TMP": {
"description": "Temperature-dependent quantity",
"top_category": "Others"
},
"TRN": {
"description": "Transmission",
"top_category": "Others"
},
"TTT": {
"description": "Thick-target yield per unit time",
"top_category": "TTY"
},
"TTY": {
"description": "Thick-target yield of the specified reaction product.",
"top_category": "TTY"
},
"TYA": {
"description": "Differential with respect to Treiman-Yang angle",
"top_category": "DA"
},
"WID": {
"description": "Resonance width",
"top_category": "RES"
},
"ZP": {
"description": "Most probable charge of fission fragments",
"top_category": "FY"
}
}
}



def get_latest_master_release():
response = requests.get(f"{MASTER_GIT_REPO_URL.replace('github.com','api.github.com/repos')}releases/latest", verify=False, headers=HEADERS)
return response.json()["name"]



def get_updated_entries():
Expand Down
2 changes: 2 additions & 0 deletions modules/reactions/data_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"filterParams": defaultFilterParams,
# "cellStyle": {"color": "blue", "text-decoration": "underline"},
"cellRenderer": "markdown",
"linkTarget": "_blank",
},
{
"headerName": "#Entry",
Expand All @@ -51,6 +52,7 @@
"filterParams": defaultFilterParams,
# "cellStyle": {"color": "blue", "text-decoration": "underline"},
"cellRenderer": "markdown",
"linkTarget": "_blank",
"hide": True,
},
]
Expand Down
Loading

0 comments on commit 69dfa67

Please sign in to comment.