Commit Graph

19 Commits (575d936a02d4e1d790973bd1e81e2e5251811934)

Author SHA1 Message Date
Ryan Burns 575d936a02 Fix cpython bindings for python 3.10+ Py_ssize_t 2022-07-20 17:25:02 -07:00
scott 5395f87b0e indent exception catch 2021-07-21 13:09:28 -05:00
scott 5181aa0e6d move stdexcept to base, convert InterleavedAccessor.cpp to exceptions 2021-07-21 13:09:28 -05:00
scott 99d478f87e send better error message in c++, pass along in py 2021-07-21 13:09:28 -05:00
scott 48b513fc42 throw exception from c++ GdalAccessor instead of exit(1)
Leads to an OSError being thrown instead of shutting down the whole program
2021-07-21 13:09:28 -05:00
Ryan Burns ecf865af0b
CMake: Fix missing modules required for UAVSAR stripmap stack (#180)
* Add missing py2to3 script

* Add missing cosar extension

* Add missing rdf parser

* Add simamplitude module

Co-authored-by: Ryan Burns <rtburns-jpl@users.noreply.github.com>
2020-10-04 11:11:55 -07:00
Ryan Burns 337dc9c158
Fix python extension linking (#168)
* Silence annoying FindFFTW warnings

* Fix linker errors at import-time

Python extensions are weakly linked, so linker errors can only be
caught at runtime. This commit fixes any such broken extensions,
and adds automated import testing to ctests to prevent future
regressions.

It also adds a helper function `isce2_add_staticlib` which creates a
position-independent static library suitable for usage in multiple
python extensions. This matches the SCons build scripts more closely
and allows for future extensions to be declared in a more terse and
hygienic fashion.

* Update utilLib scripts

* Update combinedLib scripts

* Update offoutliers lib scripts

* Add asa_im_decode cdll

* Update alos lib scripts

* Show ctest output upon failure

* Update DataAccessor scripts

* Remove TARGET_FILE_BASE_NAME

* Remove incomplete stdproc modules (require stanford code)

Co-authored-by: Ryan Burns <rtburns-jpl@users.noreply.github.com>
2020-09-14 10:57:10 -07:00
Paul A Rosen e03042f4e5 diversity: replaced oppressive language with neutral definitions of the images that comprise an interferogram through the entire repository 2020-07-02 12:40:49 -07:00
Ryan Burns c08f0b55ea Enable -fPIC for StdOEL common lib 2020-05-02 12:45:23 -07:00
Ryan Burns 81b54197e6 Merge branch 'master' into cmake 2020-04-13 14:34:14 -07:00
Ryan Burns 23f2ffaa1e
Use exist_ok argument to makedirs when appropriate (#112)
@falkamelung noted a race condition in #106 due to non-atomic directory
checking followed by os.makedirs. This pattern exists in many places
in the codebase so I went ahead and replaced the rest of them.
The new exist_ok usage should be terser and more idiomatic.
2020-04-13 12:40:32 -07:00
Ryan Burns 4057a645a2 Merge commit '64768d4' into cmake 2020-04-08 11:05:14 -07:00
Scott Staniewicz 64768d4f36
Error messages (#105)
* move `val` definition to avoid undefined

Currently, with only one swath, or not enough points,
val doesnt get defined, so this error gets thrown:

File ".../isce/components/isceobj/TopsProc/runESD.py", line 115, in runESD
    if val.size == 0 :
UnboundLocalError: local variable 'val' referenced before assignment

the `np.array` is added so that the `val.size` check makes sense,
as opposed to doing `.size` on a list

* fix string formats in error messages
2020-03-27 21:59:13 -07:00
Michael Aïvázis ea24d2320b iscesys/DictUtils: made a copy of the configuration dict before iterating over it 2020-03-18 11:26:00 -07:00
Ryan Burns 5d6a731753 Remove internal usage of ISCE_HOME env variable
ISCE_HOME was only used to get the location of the default logging config.
Lots of scripts were using boilerplate to set up this config, so I added
an `isce.logging` helper module which is the same as builtin python logging
but already has the configuration defaults set up for isce.

ISCE_HOME setup is retained in the toplevel `__init__.py`
but can now be removed without affecting functionality.
2020-02-03 14:01:57 -08:00
Ryan Burns 46fef17f39 Add CMake build system
This commit adds experimental CMake build support for ISCE2.

The only changes involved should be adding CMakeLists.txt files.
All current source files, headers, and other functionality, including
the existing SCons build system, should be unaffected.

Some functionality is still a work-in-progress.
These should all be marked as TODO in the CMakeLists.txt files.
`grep TODO **.txt`

Please read CMakeLists.txt and .cmake/*.cmake for more info.
2019-12-21 17:34:50 -08:00
piyushrpt 22c69a4ec0 clang fixes 2019-05-27 22:11:32 -07:00
Bryan Riel 126e957fe6 Catch StopIteration exception for python 3.7 compatibility. 2019-02-07 10:30:20 -08:00
Eric Gurrola 9f9a2b0805 Adding all files 2019-01-16 11:40:08 -08:00