Skip to content

Conversation

antond-weta
Copy link
Contributor

No description provided.

Signed-off-by: Anton Dukhovnikov <[email protected]>
/// The constructor. Takes the database search path as an optional
/// parameter.
/// @param search_path optional database search path.
SpectralSolver( const std::vector<std::string> &search_path = {} );
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make it search_paths since it's a list of things?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tricky, I'd rather call it search_directories then. usually $PATH is singular, but contains multiple locations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


SpectralSolver::SpectralSolver()
SpectralSolver::SpectralSolver( const std::vector<std::string> &search_path )
: _search_path( search_path )
Copy link
Contributor

Choose a reason for hiding this comment

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

don't forget about this one to be _search_paths as well if you happy with above suggestion

std::filesystem::path type_path( directory );
type_path.append( type );
if ( std::filesystem::exists( type_path ) )
{
Copy link
Contributor

Choose a reason for hiding this comment

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

do we care to warn about something in else case of this and previous if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Anton Dukhovnikov <[email protected]>
Signed-off-by: Anton Dukhovnikov <[email protected]>
Co-authored-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Anton Dukhovnikov <[email protected]>
@antond-weta antond-weta merged commit 7b3a170 into AcademySoftwareFoundation:master Sep 2, 2025
13 checks passed
mangopep pushed a commit to mangopep/rawtoaces that referenced this pull request Sep 10, 2025
* simplify core API

Signed-off-by: Anton Dukhovnikov <[email protected]>

* address review issues

Signed-off-by: Anton Dukhovnikov <[email protected]>

* address review issues

Signed-off-by: Anton Dukhovnikov <[email protected]>

* Update src/rawtoaces_core/rawtoaces_core.cpp

Co-authored-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Anton Dukhovnikov <[email protected]>

---------

Signed-off-by: Anton Dukhovnikov <[email protected]>
Co-authored-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Savitha M <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants