Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compressed io fix #82

Merged
merged 10 commits into from
May 23, 2021
5 changes: 3 additions & 2 deletions .github/workflows/release_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
vm:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2010_x86_64
container: quay.io/pypa/manylinux2014_x86_64
steps:
- name: build_sdist
run: |
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
pythonpath: ["cp36-cp36m", "cp37-cp37m", "cp38-cp38", "cp39-cp39"]

runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2010_x86_64
container: quay.io/pypa/manylinux2014_x86_64
#container: node:10.16-jessie
steps:
- name: build package
Expand All @@ -63,6 +63,7 @@ jobs:
fi
CWD=$PWD
ls -l
yum install -y zlib-devel
python3 setup.py install
rm -rf dist/*
python3 setup.py bdist_wheel
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/testrelease_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
vm:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2010_x86_64
container: quay.io/pypa/manylinux2014_x86_64
steps:
- name: build_sdist
run: |
Expand All @@ -32,7 +32,7 @@ jobs:
python3 setup.py sdist
ls -l dist/
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ --password ${{ secrets.TEST_PYPI_TOKEN }} --username __token__ --verbose dist/*
#python3 -m twine upload --password ${{ secrets.PYPI_TOKEN }} --username __token__ --verbose dist/*
#python3 -m twine upload --password ${{ secrets.PYPI_TOKEN }} --username __token__ --verbose dist/*
container:
needs: vm
strategy:
Expand All @@ -41,7 +41,7 @@ jobs:
pythonpath: ["cp36-cp36m", "cp37-cp37m", "cp38-cp38", "cp39-cp39"]

runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2010_x86_64
container: quay.io/pypa/manylinux2014_x86_64
#container: node:10.16-jessie
steps:
- name: build package
Expand All @@ -62,7 +62,8 @@ jobs:
pip3 install -r requirements.txt
fi
CWD=$PWD
ls -l
ls -l
yum install -y zlib-devel
python3 setup.py install
rm -rf dist/*
python3 setup.py bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ numpy>=1.20.0; python_version>="3.7"
scipy>=1.5.2
six>1.13.0
matplotlib
mfem
mfem==4.2.0.15
glvis
3 changes: 3 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<<< Change Log. >>>
2021 05.19
* Fixed std::istream & wrapping not to return the lenght of data. This fixes
the constructors such as mfem::Mesh(std::stream &)
2021 05.07
* vtk.py and datacollection.py was loaded in mfem.ser and mfem.par namespace properly
* istream& wrapping was improved in the same way as ostream&
Expand Down
4 changes: 1 addition & 3 deletions mfem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ def debug_print(message):

print(message)

__version__ = '4.2.0.14'


__version__ = '4.2.0.16'
20 changes: 20 additions & 0 deletions mfem/_par/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,16 @@ def Print(self, *args):
return _array.intArray_Print(self, *args)
Print = _swig_new_instance_method(_array.intArray_Print)

def PrintGZ(self, file, precision=8):
r"""PrintGZ(intArray self, char const * file, int precision=8)"""
return _array.intArray_PrintGZ(self, file, precision)
PrintGZ = _swig_new_instance_method(_array.intArray_PrintGZ)

def SaveGZ(self, file, precision=8):
r"""SaveGZ(intArray self, char const * file, int precision=8)"""
return _array.intArray_SaveGZ(self, file, precision)
SaveGZ = _swig_new_instance_method(_array.intArray_SaveGZ)

def Save(self, *args):
r"""
Save(intArray self, std::ostream & out, int fmt=0)
Expand Down Expand Up @@ -643,6 +653,16 @@ def Print(self, *args):
return _array.doubleArray_Print(self, *args)
Print = _swig_new_instance_method(_array.doubleArray_Print)

def PrintGZ(self, file, precision=8):
r"""PrintGZ(doubleArray self, char const * file, int precision=8)"""
return _array.doubleArray_PrintGZ(self, file, precision)
PrintGZ = _swig_new_instance_method(_array.doubleArray_PrintGZ)

def SaveGZ(self, file, precision=8):
r"""SaveGZ(doubleArray self, char const * file, int precision=8)"""
return _array.doubleArray_SaveGZ(self, file, precision)
SaveGZ = _swig_new_instance_method(_array.doubleArray_SaveGZ)

def Save(self, *args):
r"""
Save(doubleArray self, std::ostream & out, int fmt=0)
Expand Down
Loading