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

name output files after config and write output log #5

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

Findus23
Copy link
Member

This is something that annoyed me for a long time, so I finally fixed it:

When running monofonic on two config files:

monofonIC config-test-a.conf
monofonIC config-test-b.conf

both of them will write their data into e.g. input_powerspec.txt and therefore overwrite the values of the first run making it hard to remember which config file which output belongs to and compare them.

Even worse when running

monofonIC test-a/config.conf
monofonIC test-b/config.conf

in both cases the input_powerspec.txt ends up in the current directory instead of the one where the config is.

So I changed it that the config object also stores it's location and basename and therefore we can then name the output files e.g. config-test-a_input_powerspec.txt.

And in addition I added the output log at config-test-a_log.txt like in music.

@ohahn ohahn marked this pull request as ready for review July 18, 2024 06:51
@ohahn ohahn merged commit eb5667c into master Jul 18, 2024
1 check passed
@ohahn ohahn deleted the output-filenames branch July 18, 2024 06:51
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