Skip to content
Snippets Groups Projects
Select Git revision
  • c85a1fb8a662ca8491db725af8865463a15c3a0d
  • master default protected
  • gec-94-bdaddecal-fixes
  • gec-94-changelog
  • integrate_predict_library
  • svp_cobalt
  • merl-112-python-release-the-gil
  • gec-94-total-bda-factor
  • merl-105-dp3-python-move-not-copy
  • rap-1132-create-dynspec-step
  • padre-filestream-input
  • ast-1238-use-xtensor-char
  • gec-110-step-infoin
  • new-everybeam-interface
  • rap-1044-data-interpolation-step
  • fix-ddecal-docs
  • two-step-faraday-constraint
  • line-search
  • azelgeo-revised
  • SVP
  • test_everybeam_multifreq
  • v6.4.1
  • v6.4
  • v6.3
  • v6.2.1
  • v6.2
  • v6.1
  • v6.0.1
  • v6.0
  • v5.3
  • v5.2
  • v5.1
  • v5.0
  • v4.2
  • v4.1
  • v4.0
  • LOFAR-Release-3_1_0
  • LOFAR-Release-3_1_1
  • LOFAR-Release-3_1_2
  • LOFAR-Release-3_1_3
  • LOFAR-Release-3_1_4
41 results

tImportDP3.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    tImportDP3.py 825 B
    # Copyright (C) 2022 ASTRON (Netherlands Institute for Radio Astronomy)
    # SPDX-License-Identifier: GPL-3.0-or-later
    
    import pytest
    
    # Append current directory to system path in order to import testconfig
    import sys
    
    sys.path.append(".")
    
    import testconfig as tcf
    
    sys.path.append(f"{tcf.BINDIR}/pythondp3")
    
    """
    Script can be invoked in two ways:
    - as standalone from the build/pythondp3/test/integration directory,
      using `pytest source/tImportDP3.py` (extended with pytest options of your choice)
    - using ctest, see DP3/pythondp3/test/integration/CMakeLists.txt
    """
    
    
    def test_import_dp3():
        """
        Test import of dp3 module
        One reason this might fail is when the linkage of this module, a shared library,
        is incomplete. In that case, the run-time linker will report unresolved symbols.
        """
        import dp3