Skip to content

Commit

Permalink
update installation and test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmyhill committed Oct 6, 2024
1 parent bee8c87 commit 7c780aa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
python-versions: ['3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: make indent
Expand All @@ -24,7 +24,7 @@ jobs:
./contrib/utilities/indent
git diff > changes-astyle.diff
- name: archive indent results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: changes-astyle.diff
path: changes-astyle.diff
Expand All @@ -41,9 +41,9 @@ jobs:
python-versions: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}
- name: setup
Expand All @@ -55,7 +55,7 @@ jobs:
texlive \
texlive-latex-extra
python -m pip install --upgrade pip
pip install pycddlib # this is optional
pip install pycddlib==2.1.7 # this is optional
pip install autograd # this is optional
python --version
- name: test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion burnman/classes/seismic.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _compute_pressure(self):
# convert radii to depths
depth = self.earth_radius - radii
pressure = scipy.integrate.cumulative_trapezoid(
gravity * density, x=depth, initial=0.0
gravity * density, x=depth, initial=0
)

self.table_pressure = pressure
Expand Down
4 changes: 2 additions & 2 deletions burnman/classes/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ def compositional_null_basis(self):
null_basis = np.array([v[:] for v in null])

M = null_basis[:, self.dependent_element_indices]
assert (M.shape[0] == M.shape[1])
assert (np.abs(M - np.eye(M.shape[0])) < 1.e-20).all()
assert M.shape[0] == M.shape[1]
assert (np.abs(M - np.eye(M.shape[0])) < 1.0e-20).all()

return null_basis

Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ echo ""

# Quietly install optional modules after burnman
echo "Installing optional cvxpy, pycddlib, autograd and jupyter modules ..."
$PYTHON -m pip install -q cvxpy pycddlib autograd jupyter
$PYTHON -m pip install -q cvxpy pycddlib==2.1.7 autograd jupyter
echo ""

function testit {
Expand Down

0 comments on commit 7c780aa

Please sign in to comment.