Bug #516
simulate_mice.py makes spurious mangled mausput.gz
100%
Description
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 Tunnell, Christopher almost 12 years ago
gah. I think this issue is tied to GzipFile's being a wrapper around a normal file. Will try to fix it.
Updated by Rogers, Chris almost 12 years ago
Okay - it looked to me like it was happening even if I didn't do anything with mausput.gz in simulate_mice.py - so I assumed there was some old hard coded stuff that hasn't been cleaned up properly. I didn't dig.
Updated by Tunnell, Christopher almost 12 years ago
wait, what's the issue? there should be a default output and you'll always need output. I moved the default to .gz then back from .gz after it wasn't working.
Updated by Rogers, Chris almost 12 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
Updated by Tunnell, Christopher almost 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Updated by Rogers, Chris almost 12 years ago
- Target version changed from Future MAUS release to MAUS-v0.0.3