Takeshi Nakazato | aa8b5873729M | Pull request #1385: PIPE-2264 improve numpy 2 compatibilityMerge in PIPE/pipeline from PIPE-2264-improve-numpy-2-compatibility to main
* commit 'e2cad6514b1d16995ba318197fdb9a89b1811455': (34 commits)
Do not import bdsf on CASA 6.6.6+
Bump minimum casa version
Increment astropy version
Constrain input value to 1-d list
Revert temporal change on hsd/tasks/imaging/worker.py
Porting findContinuum version 8.2
porting almarenorm v2.1
proper... | | PIPE-2264 |
Takeshi Nakazato | e2cad6514b1M | Merge branch 'main' into PIPE-2264-improve-numpy-2-compatibility | | PIPE-2264 |
Takeshi Nakazato | 15c2c6ea6eeM | Pull request #1384: PIPE-1719 improve python 3.10 compatbilityMerge in PIPE/pipeline from PIPE-1719-improve-python-3.10-compatbility to main
* commit 'b22f8c90f7538f2ed9681a7363ba13ae86f06201':
remove unnecessary cast to list
Replacement of cElementTree with ElementTree for other files.
xml module changes for Python 3.10 compatibility
use collections.abc submodule to refer collections abstract base classes | | PIPE-1719 |
Takeshi Nakazato | 9787a340017Do not import bdsf on CASA 6.6.6+
Environment marker suggested by Rui (see PIPE-2359) | Do not import bdsf on CASA 6.6.6+Environment marker suggested by Rui (see PIPE-2359) | | PIPE-2359 |
Takeshi Nakazato | bbd80b45c92 | Bump minimum casa version | | |
Takeshi Nakazato | a618278abd7 | Increment astropy version | | |
Takeshi Nakazato | 605267cf9d4 | Constrain input value to 1-d listAlthough there is no mechanism to constrain numpy array input, constraint on the list was introduced to type hint. Implementation checks every list/ndarray elements if they are "value" (number or string) instead of list/ndarray. | | |
Takeshi Nakazato | c204a649e36 | Revert temporal change on hsd/tasks/imaging/worker.pyThis reverts commits 3a0a2c2f9176383418a06d3c5c830b406437d107 and 0a6d900e8b307e4640608f0a82670d7cc8eb694c.
By this commit, image products generated by this branch will change
compared with the ones generated by CASA 6.6.1 (PL2024) due to the
change of frequency interpolation method for imaging from "nearest"
to "linear". | | |
Takeshi Nakazato | b76ffbaa61dM | Pull request #1377: PIPE-2322 clone for main hsd baseline missing profile maps with huge deviation masksMerge in PIPE/pipeline from PIPE-2322-clone-for-main-hsd_baseline-missing-profile-maps-with-huge-deviation-masks to main
* commit '52bf5ddb3e6c62ade8fe52e5c98ac8ebfeaa5d87':
add comment on channel width
PIPE-2322 use scipy.interpolate.interp1d to enable extrapolation
PIPE-2322 add test for ch_to_freq
update docstring
refactoring for minor performance improvement
Chery-pick PIPE-231... | | 2 Jira issues |
Takeshi Nakazato | e20b2aaa9c4 | Porting findContinuum version 8.2 | | |
Takeshi Nakazato | b22f8c90f75 | remove unnecessary cast to list | | |
Takeshi Nakazato | 2914d156ab7 | porting almarenorm v2.1Ported from almasw repository.
branch URL: https://bitbucket.alma.cl/projects/ALMA/repos/almasw/browse?at=refs%2Fheads%2FICT-23760%2Frenorm
commit: 1b5a3ca13e2 | | |
Takeshi Nakazato | 516b5a4a4ac | properly display observing pattern in pointing plot | | |
Takeshi Nakazato | d624f7e5ca4 | Fix scorecalculator unit test failureIt seems that builtin sum in Python 3.10 tries to keep data type of the values to be summed up even if it causes overflow. On the other hand, np.sum flexibly changes data type of resulting value when data type is integer and the resulting value causes overflow with the input data type. | | |
Takeshi Nakazato | d0031a98d9a | Fix mswrapper unit test failure | | |
Takeshi Nakazato | c8067fbade6 | Replacement of cElementTree with ElementTree for other files. | | |
Takeshi Nakazato | bb17a59a35e | Additoinal bug fix for tb.query issue | | |
Takeshi Nakazato | 19da091504c | Use np.prod instead of deprecated np.productnumpy.product is deprecated since 1.25.0. | | |
Takeshi Nakazato | 0a6d900e8b3 | set interpolation method only when it's available as tsdimaging parameter | | |
Takeshi Nakazato | 07feee9880a | Avoid contamination from previouw plotsThis is done by clearing Figure object explicitly before drawing | | |
Takeshi Nakazato | 1da9b7aad80 | Explicitly cast field id into Python int | | |
Takeshi Nakazato | 3a0a2c2f917 | temporarily use nearest interpolation for imagingThis must eventually be reverted to linear (default) once verification has been done. | | |
Takeshi Nakazato | ceb3afc6e3c | change to fix weblog rendering error in hsd_imaiging | | |
Takeshi Nakazato | 3ca671064dd | use tolist method to convert numpy array into Python list | | |
Takeshi Nakazato | a02624416a4 | Removed unnecessary log handling from applycal qa code.A piece of code was wrapped by "with" statement to ignore numpy ComplexWarning. However, that code should not emit ComplexWarning according to the nature of the operation. So it should be safe to remove "with" block. | | |
Takeshi Nakazato | 361e3cc3979 | Use ndarray.tolist method to convert all list elements into Python builtin types | | |
Takeshi Nakazato | 0985a522388 | Use callable to avoid too long test case description | | |
Takeshi Nakazato | 3b7f099b90c | use isinstance instead of comparing type | | |
Takeshi Nakazato | bcfa315d795 | Refactoring and supplemental comments | | |
Takeshi Nakazato | 206046ff3ee | Updated upstream repository information for extern/SDcalatmcorr.py | | |
Takeshi Nakazato | 9a4015f918b | support converting long list | | |
Takeshi Nakazato | af8936c1fed | Switch astropy version according to python versionEffectively, it installs astropy 5.2.2 on CASA 6.6.1 and 6.1.3 on CASA 6.6.6. | | |
Takeshi Nakazato | 3e9da803ee8 | Use np.str_ instead of deprecated np.unicode_This is the change for extern module | | |
Takeshi Nakazato | dfff6087eaa | Replace removed aliases with valid namesnp.NaN -> np.nan
np.mat -> np.asmatrix | | |
Takeshi Nakazato | 58a8bbe9dd9 | Replace deprecated np.str_ with np.bytes_This is the change for extern module | | |
Takeshi Nakazato | 6beabd5ab15 | convert list into string safely for table queryThis is the change for extern module | | |
Takeshi Nakazato | 27750658a08 | use utility function to convert list/ndarray into stringIn Python 3.10 with NumPy 2.0.1, print(list(ndaray)) gives elements with data types such as '[np.int64(0), np.int64(1), np.int64(2)]'. Utility function was defined to avoid such unexpected string. | | |
Takeshi Nakazato | 4453f7cdac1 | define list_to_str | | |
Takeshi Nakazato | 4c6e1b801b0 | import numpy as npThis is for eval to recognize "np". | | |
Takeshi Nakazato | b5f31478139 | Upgrade astropy to 6.1.3 | | |
Takeshi Nakazato | 580c190b732M | Merge branch 'PIPE-1719-improve-python-3.10-compatbility' into PIPE-2264-improve-numpy-2-compatibility | | 2 Jira issues |
Kristin Berry | 631469f55f1M | Pull request #1381: PIPE-2328 clone update the task reference manual for pl2024 and add PIPE-2341 change to mainMerge in PIPE/pipeline from PIPE-2328-clone-update-the-task-reference-manual-for-pl2024 to main
* commit '7634237de057c81d5b2a427397976dd6d41b6bc1':
PIPE-2285: Add more information to hifv_mstransform docstring.
PIPE-2285: Correct example in h_importdata docstring. Add additional whitespace in hsd_resotredata for consistency, and remove unnecessary parenthesis in hifv_restoredata.
PIPE-2... | | 3 Jira issues |
Kristin Berry | 7634237de05M | PIPE-2328: Resolve conflicts with main | | PIPE-2328 |
Vincent Geers | 390f51f44e2M | Pull request #1379: PIPE-2327: clone of PIPE-2325 changes to merge to main: update task CLI docstring for restoredata tasksMerge in PIPE/pipeline from PIPE-2327_copytoraw_restoredata to main
* commit '4934b819dba18a05fbf93bd2090fe73495b964a2':
PIPE-2327: remove comment from hsdn_restoredata task CLI docstring (cloned from PIPE-2325).
PIPE-2327: update task CLI docstring for hsdn_restoredata to document default behaviour for copytoraw and add parameter defaults (cloned from PIPE-2325).
PIPE-2327: update task ... | | 2 Jira issues |
Takeshi Nakazato | 3ba253b96fc | xml module changes for Python 3.10 compatibility- avoid using deprecated method Element.getchildren
- replace deprecated xml.etree.cElementTree with xml.etree.ElementTree | | |
Takeshi Nakazato | b273a125b14 | use collections.abc submodule to refer collections abstract base classes | | |
Takeshi Nakazato | 52bf5ddb3e6 | add comment on channel width | | |
Takeshi Nakazato | 34de7513327 | PIPE-2322 use scipy.interpolate.interp1d to enable extrapolation | | PIPE-2322 |
Takeshi Nakazato | d02b60c9093 | PIPE-2322 add test for ch_to_freq | | PIPE-2322 |
Kristin Berry | da2d4235b40 | PIPE-2285: Add more information to hifv_mstransform docstring. | | PIPE-2285 |