Skip to content

Conversation

@robinschmid
Copy link
Member

@robinschmid robinschmid commented May 11, 2023

Added arguments i: input to change the input files in batch files easily. It just replaces all the files in the AllSpectralDataImportModule.

Either provide a txt file with paths or use glob patterns

-b D:\Data\batch\test.xml -i D:\Data\input_files.txt
-b D:\Data\batch\test.xml -i D:\Data\*.mzML

Copy link
Member

@SteffenHeu SteffenHeu left a comment

Choose a reason for hiding this comment

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

looks good, but some comments

}

if (overrideDataFiles != null) {
if (!newQueue.setImportFiles(overrideDataFiles)) {
Copy link
Member

Choose a reason for hiding this comment

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

the method never returns false but throws an exception instead, so the code below is never reached.

Copy link
Member Author

Choose a reason for hiding this comment

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

returns false now. Logging was improved and jdocs as well

*
* @param allFiles replaces import files
*/
public boolean setImportFiles(final File[] allFiles) {
Copy link
Member

Choose a reason for hiding this comment

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

does not return false but throws an exception. Refactor to do one of the two.

Copy link
Member Author

Choose a reason for hiding this comment

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

returns false now. Logging was improved and jdocs as well

@SteffenHeu
Copy link
Member

looks good, thanks

@SteffenHeu SteffenHeu merged commit 662dfc8 into mzmine:master May 19, 2023
@robinschmid robinschmid deleted the input_cli_argument branch January 8, 2024 16:53
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