Merge pull request #1823 from paulromano/gha-ubuntu-20-04

Run CI tests on ubuntu 20.04
This commit is contained in:
Patrick Shriwise 2021-04-28 00:09:59 -05:00 committed by GitHub
commit a76c5a7e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 8 deletions

View file

@ -23,7 +23,7 @@ env:
jobs:
main:
runs-on: ubuntu-16.04
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
@ -95,12 +95,16 @@ jobs:
shell: bash
run: |
sudo apt -y update
sudo apt install -y libopenmpi-dev \
sudo apt install -y libmpich-dev \
libnetcdf-dev \
libpnetcdf-dev \
libhdf5-serial-dev \
libhdf5-openmpi-dev \
libhdf5-mpich-dev \
libeigen3-dev
sudo update-alternatives --set mpi /usr/bin/mpicc.mpich
sudo update-alternatives --set mpirun /usr/bin/mpirun.mpich
sudo update-alternatives --set mpi-x86_64-linux-gnu /usr/include/x86_64-linux-gnu/mpich
-
name: install
shell: bash

View file

@ -580,7 +580,7 @@ class Sum(EqualityMixin):
class Regions1D(EqualityMixin):
"""Piecewise composition of multiple functions.
r"""Piecewise composition of multiple functions.
This class allows you to create a callable object which is composed
of multiple other callable objects, each applying to a specific interval

View file

@ -995,7 +995,7 @@ class WindowedMultipole(EqualityMixin):
out.windows = group['windows'][()]
out.broaden_poly = group['broaden_poly'][...].astype(np.bool)
out.broaden_poly = group['broaden_poly'][...].astype(bool)
if out.broaden_poly.shape[0] != out.windows.shape[0]:
raise ValueError(err.format('broaden_poly', 'windows'))

View file

@ -2060,7 +2060,7 @@ class XSdata:
Np = self.num_polar
Na = self.num_azimuthal
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=np.int)
g_out_bounds = np.zeros((Np, Na, G, 2), dtype=int)
for p in range(Np):
for a in range(Na):
for g_in in range(G):

View file

@ -493,7 +493,7 @@ class SphericalIndependent(Spatial):
return cls(r, theta, phi, origin=origin)
class CylindricalIndependent(Spatial):
"""Spatial distribution represented in cylindrical coordinates.
r"""Spatial distribution represented in cylindrical coordinates.
This distribution allows one to specify coordinates whose :math:`r`,
:math:`\phi`, and :math:`z` components are sampled independently from

View file

@ -31,7 +31,7 @@ if [[ $MPI == 'y' ]]; then
export CC=mpicc
export HDF5_MPI=ON
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich
pip install --no-binary=h5py h5py
fi