Skip to content

Conversation

@pelesh
Copy link
Collaborator

@pelesh pelesh commented Jan 18, 2025

Parameter estimation example crashes when input file cannot be found. Use a string to pretend to be a file in this example, so it can be run as a standalone binary without special input files. User still can easily modify this file to create their own app.

In this PR:

  • setLookupTable function takes std::istream and not input file name as the input. It is user's responsibility to create an std::istream.
  • Some compiler warning fixes.

@pelesh pelesh added bug Something isn't working testing labels Jan 18, 2025
@pelesh pelesh requested a review from reid-g January 18, 2025 23:27
@pelesh pelesh self-assigned this Jan 18, 2025
@pelesh pelesh force-pushed the slaven/example_io_fix branch from 5bc9985 to fb3e73e Compare January 18, 2025 23:39
Copy link
Collaborator

@reid-g reid-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks good. Only some minor changes then it is good to go.

@pelesh pelesh merged commit 2ce4dce into develop Jan 21, 2025
2 checks passed
@pelesh pelesh deleted the slaven/example_io_fix branch March 14, 2025 03:35
pelesh added a commit that referenced this pull request Apr 14, 2025
* Fix for file IO in arbitrary directory

 - Crashes for file IO when invalid
 - ParameterEstimation can be run not in directoy without error

* setLookupTable takes istream instead of filename as input.

* Parameter estimation example input is from string, not file.

---------

Co-authored-by: Reid Gomillion <rjg18@vt.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants