Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lanl/impala
Browse files Browse the repository at this point in the history
  • Loading branch information
jnplohr committed Mar 6, 2024
2 parents d43536e + d5b222a commit 0307306
Show file tree
Hide file tree
Showing 11 changed files with 491 additions and 972 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/python-app-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application
run-name: ${{ github.actor }} is performing GitHub Actions

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
# pytest
33 changes: 16 additions & 17 deletions examples/ti64_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,22 @@
##########################################################################################
# set constants and parameter bounds
consts_ptw = {
'alpha' : 0.95,
'beta' : 0.33,
'matomic': 45.9,
'Tmelt0' : 2473.8,
'chi' : 1.0,
'G0' : 0.44,
'rho0' : 4.419,
'rho_0' : 4.45,
'gamma_1': 2.2,
'gamma_2': -4.7,
'q2' : 0.8,
'Cv0' : 5.1388e-5,
'T0' : 298.15,
'dCdT' : 1.371e-8,
'dTmdRho': 1448.2,
't0' : 54.73,
'dRhodT' : -2.5965e-5
'alpha' : 0.84,
'beta' : 0.33,
'matomic': 45.9,
'chi' : 1.0,
'G0' : 0.44,
'rho0' : 4.419,
'rho_0' : 4.45,
'gamma_1': 2.2,
'gamma_2': -4.7,
'q2' : 0.8,
'c0' : 4.730036e-05,
'tm0' : -3925.796,
'tm1' : 1448.2,
'r0' : 4.426741,
'c1' : 1.371e-8,
'r1' : -2.5965e-5
}

bounds_ptw = {
Expand Down
Loading

0 comments on commit 0307306

Please sign in to comment.