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

merge_obs use stack for PSF merge infile #935

Open
kglotfelty opened this issue Dec 21, 2024 · 2 comments
Open

merge_obs use stack for PSF merge infile #935

kglotfelty opened this issue Dec 21, 2024 · 2 comments

Comments

@kglotfelty
Copy link
Member

I hit an error when combining 45 observations because the infile parameter to dmimgfilt is longer than 2048 characters

  Combining 45 observations.
  Input string is longer than 2048 char: parameter argument error : infile
  # merge_obs (05 November 2021): ERROR Unable to run dmimgfilt with arguments: infile=...2070 characters....

I don't know if the error message is new or just first time hitting it. Looking at the code, I think

args = ["infile={}".format(','.join(psfmap_files)),

can be updated to replace the long infile with a temporary stack and then it should be able to handle it.

Kenny

@kglotfelty
Copy link
Member Author

Do we have a context manager for things like this

with TemporaryStack(<some iterable>) as my_stack:
    infile=f"@-{my_stack}"
    run()

@DougBurke
Copy link
Member

I'm pretty sure we don't (yet) have such a context manager.

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

No branches or pull requests

2 participants