Phab-utils

Latest version: v0.8.2

Safety actively analyzes 723152 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.8.2

Released on `2025-03-16`.

- `tasks`
+ `reconfirming_stellar_parameters`
* fixed wrong imports (*with a workaround for pdoc, as it expects different imports for some reason*)
* `lookForParametersInGaia`
- replaced `numpy.NaN` with `numpy.nan`, as the former was removed from NumPy 2.0
- `databases`
+ `simbad`
* `findIdentificatorFromAnotherCatalogue` - one more of the same workaround for [breaking API](https://github.com/astropy/astropy/issues/17695) in Astroquery version `0.4.8`

0.8.1

Released on `2025-02-01`.

- fixed incorrect namespacing of the package, was missing `find_namespace:` directive in the manifest, which made imports fail
+ that affected users who install it from PyPI wheel with `pip install phab-utils`
+ installing from sources with `pip install -e .` doesn't seem to be affected
+ the version is increased because it is impossible to re-publish the same version to PyPI

0.8.0

Released on `2025-02-01`.

- the package has been renamed from `uio-exoplanet-group` to `phab-utils`
+ `utility` namespace is now `utils`, and in general you will need to adapt your imports from `uio.utility.SOMETHING` to `phab.utils.SOMETHING`
+ new wheels
* published in PyPI under the [new name](https://pypi.org/project/phab-utils/)
* previous versions are still available in PyPI under the [old name](https://pypi.org/project/uio-exoplanet-group/#history)
- `math` - new module for mathematics
+ `statistics`
* `findOutliers()` - marking outliers in an array
- `databases`
+ `simbad`
* `getObjectID` - workaround for [breaking API](https://github.com/astropy/astropy/issues/17695) in Astroquery version `0.4.8`

0.7.0

Released on `2024-10-20`.

- `databases`
+ `tap`
* `escapeSpecialCharactersForAdql()` - escaping certain special characters (*such as single quotes*) in ADQL queries
* `getPlanetaryParameterReferenceFromNASA()` - getting the publication reference for the given planetary parameter value from NASA database
* `getStellarParameterFromNASA()` and `getPlanetaryParameterFromNASA()` can optionally get non-rounded float values to work around the problem with [inconsistent values](https://decovar.dev/blog/2022/02/26/astronomy-databases-tap-adql/#float-values-are-rounded-on-select-but-compared-to-originals-in-where) in `SELECT`/`WHERE`
- `strings` - new module for working with strings
+ `extraction`
* `adsRefFromFullReferenceNASA()` - extracting just the ADS reference value from the full reference string
+ `conversion`
* `floatToStringForADQLcastVarchar()` - converting floats to strings for ADQL

0.6.0

Released on `2024-08-31`.

- `databases`
+ `lightcurves`
* `getLightCurveStats`
- cadence can have more than one value, so it now accepts a list instead of just one value (*and an empty list would mean that any value is good*)
- detailed results format has changed, now it also includes the cadence value per sector
+ `simbad` and `tap` - querying for a parameter in SIMBAD also returns its bibliographic code, so now the return type for the following functions is `tuple[Any, str]`:
* `getStellarParameter()`
* `getStellarParameterFromSimbadByMainID()`
* `getStellarParameterFromSimbadByObjectID()`

0.5.1

Released on `2024-08-24`.

- `databases`
+ `simbad`
* renamed `findObjectID()` to `getObjectID()`
- checking for the main ID before iterating all the identificators
* renamed `getOtherIDfromSimbad()` to `findIdentificatorFromAnotherCatalogue()`
* `getStellarParameterFromSimbad()` - wraps `getObjectID()` and `getStellarParameterFromSimbadByObjectID()` into a single convenience function
+ `tap`
* split `getStellarParameterFromSimbad()` into `getStellarParameterFromSimbadByMainID()` and `getStellarParameterFromSimbadByObjectID()`
* `getServiceEndpoint()` now raises a `ValueError` exception instead of returning `None`

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.