simulate_mice.py makes spurious mangled mausput.gz
somehow simulate_mice.py is making a mausput.gz file even when there is no mausput.gz file in the output mapper. Looks like there is some file mangling going on also because gunzip fails with this file. I changed it to make an untarred file like simulation.out
Updated by Rogers, Chris over 10 years ago
- Code is up to date.
- I remove mausput.gz
- I run simulate_mice.py
- mausput.gz has appeared
- but the simulate_mice.py output file name is simulation.out - why is it making a mausput.gz file as well as a simulation.out file?
Also I was having trouble gunzipping mausput.gz when the output file name was mausput.gz - may be unrelated. I notice now I have changed the output file name I can do a gunzip to return an empty file.
cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> bzr status unknown: .coverage maus.info src/input/InputCppRealData/build/ cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> rm mausput* rm: cannot remove `mausput*': No such file or directory cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> ls analyze_data_mice.py configuration_db_example.py load_test.py README README_ON_CLEANLINESS simulate_mice.py simulate_mice.py~ user cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> python simulate_mice.py Welcome to MAUS: Process ID (PID): 8572 Universally Unique ID (UUID): 1a8f837f-f36e-4368-9090-80d28d352d35 Program Arguments: ['simulate_mice.py'] INPUT: Reading some input MAP: Setting up mappers Module with Volume None cannot have daughters. They will not be placed. Setting phases Done MAP: Processing 10 events MAP: Closing input and mappers REDUCE: Setting up reducers REDUCE: Merging 0 passes and reducing the 10 events left in the buffer cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> ls analyze_data_mice.py configuration_db_example.py load_test.py mausput.gz README README_ON_CLEANLINESS simulate_mice.py simulate_mice.py~ simulation.out user cr67@linux-fyo8:~/G4MICE/MAUS/maus_trunk/bin> grep mausput.gz simulate_mice.py #output_file = gzip.GzipFile("mausput.gz", 'wb') # Compressed