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

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

Open
PeterBetlem opened this issue Sep 21, 2023 · 2 comments
Open

Comments

@PeterBetlem
Copy link

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:

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, ';'));

@ty-watkins
Copy link

I was able to get it working, but had to go download the 1.11.1 from the release page and copied the setup.cmake from there into my other folder.

@ty-watkins
Copy link

Also, the returned value for the TestUnit.m wasn't within the 1e-4 tolerance for the matlab.unittest so I changed it to 1e-3 to get it to pass. Maybe the comparison value was never updated after adding the 2020 .dat files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants