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

Register new version with compat bounds #14

Closed
sefffal opened this issue Jan 12, 2024 · 2 comments
Closed

Register new version with compat bounds #14

sefffal opened this issue Jan 12, 2024 · 2 comments

Comments

@sefffal
Copy link

sefffal commented Jan 12, 2024

Hello,
Would you mind releasing a new version of this package with updated compat bounds?
I can submit a PR if needed.

Thanks!

@emmt
Copy link
Owner

emmt commented Jan 15, 2024

Hello,

Thanks for the suggestion.

I have just registered a new major version (1.0.0) with compat bounds. If you were using the former official version (0.4), see the NEWS.md file for a list of changes. If you were using the master version, the data-block types have chanched to match the name of the corresponding FITS extension (as in v0.4). Below is a Perl script to perform the changes in the code if you were using the master version:

#! /usr/bin/perl -pi.orig
s/\bOIArray\b/OI_ARRAY/g;
s/\bOICorr\b/OI_CORR/g;
s/\bOIFlux\b/OI_FLUX/g;
s/\bOIInsPol\b/OI_INSPOL/g;
s/\bOIT3\b/OI_T3/g;
s/\bOITarget\b/OI_TARGET/g;
s/\bOIVis2\b/OI_VIS2/g;
s/\bOIVis\b/OI_VIS/g;
s/\bOIWavelength\b/OI_WAVELENGTH/g;

Assuming that you save this script as update.pl, you can apply the changes by

perl -pi.orig update.pl FILE1FILE2 ...

to convert type names in files FILE1, FILE2, ... saving the original files with the .orig extension (in case of). If update.pl is set as executable script (chmod 755 update.pl), you can directly do:

update.pl FILE1 FILE2 ...

@sefffal
Copy link
Author

sefffal commented Jan 22, 2024

Thank you very much!

@emmt emmt closed this as completed Jan 23, 2024
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