Skip to content

Commit

Permalink
Merge pull request #378 from GeoscienceAustralia/develop
Browse files Browse the repository at this point in the history
Release 0.6.1
  • Loading branch information
s-m-t-c authored Feb 24, 2022
2 parents 8203989 + 1033836 commit 791d01c
Show file tree
Hide file tree
Showing 76 changed files with 115 additions and 81 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
sudo apt update
sudo apt upgrade
python -m pip install -U pip wheel
python -m pip install -U pip wheel setuptools==58.0
- name: Install packages including openmpi
if: env.PYTHONVERSION != '3.9'
run: sudo apt install libhdf5-serial-dev libnetcdf13 libatlas-base-dev gfortran openmpi-bin libopenmpi-dev
Expand Down Expand Up @@ -101,8 +101,13 @@ jobs:
pytest tests/ -m "slow"
mpirun -n 3 pytest tests/test_shared.py -k test_tiles_split -s
pytest --cov-config=.coveragerc --cov-report term-missing:skip-covered --cov=pyrate tests/ -m "not slow"
env:
OMP_NUM_THREADS: 1
- name: Test Pyrate in Python ${{ matrix.python-version }} without MPI
if: env.PYTHONVERSION == '3.9'
run: |
pytest tests/ -m "not mpi and slow"
pytest --cov-config=.coveragerc --cov-report term-missing:skip-covered --cov=pyrate tests/ -m "not slow and not mpi"
env:
OMP_NUM_THREADS: 1

2 changes: 1 addition & 1 deletion docs/_build/html/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ <h1>

<div role="contentinfo">
<p>
&copy; Copyright 2021, Geoscience Australia
&copy; Copyright 2022, Geoscience Australia
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a
Expand Down
14 changes: 14 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
Release History
===============

0.6.1 (2022-02-18)
------------------
Added
+++++
- List generator in ``utils/listcreator.sh`` for easier input generation from GAMMA output to PyRate.

Fixed
+++++
- Fix wrong sign in Y-intercept output file.
- Fix and simplify how user supplied reference pixel is validated and cropping issue.
- Add metadata for reference pixel latitude and longitude to output files.
- Fix non-determinism in unit tests that use array comparison by running them single threaded.


0.6.0 (2021-10-18)
------------------
Added
Expand Down
4 changes: 3 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ To allow flexibility in the file types that can be processed, `PyRate` requires
file lists to be provided. This allows `PyRate` to identify files of each
type without relying on file extensions. The file path to these lists are
provided under ``ifgfilelist``, ``hdrfilelist``, ``cohfilelist`` and
``basefilelist`` keywords in the configuration file.
``basefilelist`` keywords in the configuration file. These lists can be created manually
or generated using the script ``list_creator.sh`` located in the ``utils`` folder.
This script may need to be slightly modified depending on the output paths of your input data.

.. note::

Expand Down
2 changes: 1 addition & 1 deletion pyrate/configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/conv2tif.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/algorithm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/aps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/covariance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/dem_error.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/gamma.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/gdal_python.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/geometry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/ifgconstants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/logger.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/mpiops.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/mst.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/orbital.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/phase_closure/closure_check.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/phase_closure/collect_loops.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/phase_closure/mst_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/phase_closure/plot_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/phase_closure/sum_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/prepifg_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/ref_phs_est.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/refpixel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/roipac.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
9 changes: 3 additions & 6 deletions pyrate/core/shared.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,11 +40,8 @@

import pyrate.constants as C

try:
from osgeo import osr, gdal
from osgeo.gdalconst import GA_Update, GA_ReadOnly
except ImportError:
import gdal
from osgeo import osr, gdal
from osgeo.gdalconst import GA_Update, GA_ReadOnly

from pyrate.core import ifgconstants as ifc, mpiops
from pyrate.core.logger import pyratelogger as log
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/stack.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/core/timeseries.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/correct.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/default_parameters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License,
# Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion pyrate/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/merge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pyrate/prepifg.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion scripts/plot_ifgs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -20,7 +20,7 @@
from subprocess import check_output, run
import platform
import setuptools
__version__ = "0.6.0"
__version__ = "0.6.1"

# Get requirements (and dev requirements for testing) from requirements
# txt files. Also ensure we are using correct GDAL version.
Expand Down
2 changes: 1 addition & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/phase_closure/test_closure_check.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/phase_closure/test_mst_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/phase_closure/test_plot_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion tests/phase_closure/test_sum_closure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
# Copyright 2022 Geoscience Australia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 791d01c

Please sign in to comment.