Skip to content

Commit

Permalink
fixed the RelionMetadataExporter now requiring the image.h5 file
Browse files Browse the repository at this point in the history
  • Loading branch information
MJoosten committed Nov 7, 2024
1 parent 4ff5d6d commit ebc749c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/roodmus/simulation/run_parakeet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,22 @@ def simulate_image(
config.config_filename, sample_file=config.sample_filename
)

parakeet.simulate.exit_wave(
config.config_filename,
config.sample_filename,
exit_wave_file=config.exit_wave_filename,
)
parakeet.simulate.optics(
config.config_filename,
exit_wave_file=config.exit_wave_filename,
optics_file=config.optics_filename,
)
parakeet.simulate.image(
config.config_filename,
optics_file=config.optics_filename,
image_file=config.image_filename,
)

# Write out the metadata if this is the first image in this
# run_parakeet session or if overwrite requested
if write_mtf:
Expand Down Expand Up @@ -1144,22 +1160,6 @@ def simulate_image(
)
)

parakeet.simulate.exit_wave(
config.config_filename,
config.sample_filename,
exit_wave_file=config.exit_wave_filename,
)
parakeet.simulate.optics(
config.config_filename,
exit_wave_file=config.exit_wave_filename,
optics_file=config.optics_filename,
)
parakeet.simulate.image(
config.config_filename,
optics_file=config.optics_filename,
image_file=config.image_filename,
)

# save the image
os.system(
"parakeet.export {} -o {}".format(
Expand Down

0 comments on commit ebc749c

Please sign in to comment.