Skip to content

IRI2016 NOT readily accessible from Matlab - cmake.setup missing #38

@PeterBetlem

Description

@PeterBetlem

Bug

Cloning the master branch and running "TestAll" in MatLab results in the following error:

CMake Error: Cannot find file: ./iri2016-master/iri2016-master/src/iri2016/setup.cmake

This file is not present in the current repo, and older versions do not seem to have the desired effect.

Solution

  • Provide setup.cmake that works
  • Provide additional documentation on how to run the code correctly (from the master branch or otherwise).

Log and system details

  • operating system: Windows 11/Matlab 2022b
  • compiler & version: See log below.

Error Log:

Details Running iri2016.TestUnit Setting up iri2016.TestUnit Done setting up iri2016.TestUnit in 0 seconds Running iri2016.TestUnit/test_simple cmake version 3.27.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

  • Extra verbosity turned on
    Reading Script: ./iri2016-master/iri2016-master/src/iri2016/setup.cmake
    CMake Error: Cannot find file: ./iri2016-master/iri2016-master/src/iri2016/setup.cmake

================================================================================
Error occurred in iri2016.TestUnit/test_simple and it did not run to completion.
---------
Error ID:
---------
''
--------------
Error Details:
--------------
Error using assert
error building with CMake

Error in cmake (line 15)
assert(system(cmd) == 0, 'error building with CMake')

Error in iri2016.iri2016 (line 16)
  cmake(srcdir)

Error in iri2016.TestUnit/test_simple (line 11)
iono = iri2016.iri2016(time, glat, glon, altkmrange);

================================================================================
Done iri2016.TestUnit/test_simple in 0.38063 seconds
Tearing down iri2016.TestUnit
Done tearing down iri2016.TestUnit in 0 seconds
Done iri2016.TestUnit in 0.38063 seconds


Failure Summary:

 Name                          Failed  Incomplete  Reason(s)
=============================================================
 iri2016.TestUnit/test_simple    X         X       Errored.

Error using assert
At least one test failed in the test session.

Error in matlab.unittest.internal.BaseTestResult/assertSuccess (line 125)
assert(~any([resultArray.Failed]),message('MATLAB:unittest:TestResult:UnsuccessfulRun'));

Error in TestAll (line 23)
assertSuccess(results)

Error in run (line 91)
evalin('caller', strcat(script, ';'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions