Skip to content

Check for duplicate input file names/IDs - #372

Merged
sfarrens merged 122 commits into
CosmoStat:masterfrom
martinkilbinger:mult_ID
Jan 21, 2021
Merged

sfarrens merged 122 commits into
CosmoStat:masterfrom
martinkilbinger:mult_ID

Conversation

@martinkilbinger

Copy link
Copy Markdown
Contributor

This PR is a suggestion to fix the problem if there are multiple input files with identical names, e.g. which are in different input subdirectories. In this case jobs will be run with the same input. This can cause errors in modules, in particular in parallel mod, when identical output files are created by different jobs.

I added a check for duplicate input file names, and raise a Runtime error if that is the case.

martinkilbinger and others added 30 commits July 2, 2020 14:10
LSB, flux scaling updates from upstream master
upstream -> origin, getting changes from br_debug pull request
Config files updates from big run (#324)
Global statistics from setools outputs (#326)
@sfarrens

Copy link
Copy Markdown
Member

Looks good to me. According to this blog post it seems like a pretty efficient implementation too.

Happy to merge if you are done with this PR.

@sfarrens sfarrens linked an issue Jan 20, 2021 that may be closed by this pull request
@sfarrens sfarrens added this to the General Improvements milestone Jan 20, 2021
@martinkilbinger

Copy link
Copy Markdown
Contributor Author

According to this blog post it seems like a pretty efficient implementation too.

Ha, that's where I got the code from!

Since we might have to deal with very large lists, probably good to be efficient here.

@sfarrens

Copy link
Copy Markdown
Member

Just realised that the CI tests didn't run. I will look into this, but for now I ran them locally. There is one minor fix to be made before merging:

______________________________________________________________ pycodestyle-check ______________________________________________________________
.../shapepipe/shapepipe/pipeline/file_handler.py:95:32: W291 trailing whitespace

@sfarrens
sfarrens merged commit 3db4301 into CosmoStat:master Jan 21, 2021
@sfarrens
sfarrens deleted the mult_ID branch January 21, 2021 09:32
@martinkilbinger
martinkilbinger restored the mult_ID branch April 15, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate input file names/IDs

3 participants