Skip to content

prevent file name too long error for analytic cov - #100

Merged
susannaaz merged 1 commit into
mainfrom
name_length_fix
Oct 26, 2026
Merged

susannaaz merged 1 commit into
mainfrom
name_length_fix

Conversation

@susannaaz

Copy link
Copy Markdown
Collaborator

compute_covariance.py builds the file name analytic_cov_{ms1}_x_{ms2}_{ms3}_x_{ms4}.npz from four map-set names. For low_/high_ambient_temperature this comes to 268 bytes, over the 255-byte limit.

I added cov_filename() to utils.py. Names that fit are unchanged. Longer ones are truncated to 255 bytes with a SHA-1 suffix. compute_covariance.py now writes through it, and create_sacc_file_analytic.py reads through it, so the two agree.

@susannaaz
susannaaz merged commit 9aa9962 into main Oct 26, 2026
1 check passed
susannaaz added a commit that referenced this pull request Nov 3, 2026
Make sa/v4_paper identical to name_length_fix (origin/main #100 plus the
analytic-cov file name fix), the SOOPERCOOL version used for the MT TF and
spectra of the 20260802 analysis. Previous sa/v4_paper history is kept as
the first parent.
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

Successfully merging this pull request may close these issues.

2 participants