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

Argument list too long in apero_reset #793

Open
clairem789 opened this issue Nov 29, 2024 · 2 comments
Open

Argument list too long in apero_reset #793

clairem789 opened this issue Nov 29, 2024 · 2 comments
Assignees

Comments

@clairem789
Copy link
Collaborator

hi Neil,

12:21:33.469-|RESET| ==================================================
12:21:33.494-
|RESET| Calibration directory:
12:21:33.501-**|RESET| ==================================================
12:21:33.508- |RESET| Resetting calibration database directory
sh: /bin/rm: Argument list too long

12:24:57.663-|RESET| ==================================================
12:24:57.678-
|RESET| Telluric directory:
12:24:57.685-**|RESET| ==================================================
12:24:57.692- |RESET| Resetting tellruic database directory
sh: /bin/rm: Argument list too long

Is there something I can do except doing it manually by chunks out of apero?
thanks

@njcuk9999
Copy link
Owner

This is just a warning that you can ignore - I can't get rid of it or suppress it- its just APERO tries to use the system rm command as its way faster and if it fails (i.e. you get this warning, which I don't know how to suppress as its from the command line not from python) it goes through all the files in python and removes them (which is slower but works as it doesn't rely on ls to get an argument list and hence give this warning.

@njcuk9999
Copy link
Owner

In v0.8 I'm going to change the telluric directory (and calibration directory) and have sub-directories as not being able to ls is a pain!

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