Astronomy and astrophysics core library
This report presents the forensic synthetic code analysis of astropy/astropy, a Python project with 5,230 GitHub stars. SynthScan v2.0 examined 546,782 lines of code across 1249 source files, recording 6217 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 13.7 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 6217 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conftest.py | 27 | def _session_level_config_dir(tmp_path_factory): | CODE |
| LOW | docs/nddata/examples/cutout2d_tofits.py | 9 | def download_image_save_cutout(url, position, size): | CODE |
| LOW | astropy/conftest.py | 57 | def ignore_config_paths_global_state(monkeypatch, tmp_path_factory): | CODE |
| LOW | astropy/conftest.py | 114 | def _session_level_config_dir(tmp_path_factory): | CODE |
| LOW | astropy/logger.py | 309 | def exception_logging_enabled(self): | CODE |
| LOW | astropy/logger.py | 364 | def disable_exception_logging(self): | CODE |
| LOW | astropy/visualization/tests/test_stretch.py | 157 | def test_histeqstretch_invalid(): | CODE |
| LOW | astropy/visualization/tests/test_basic_rgb.py | 328 | def test_make_linear_rgb_file(): | CODE |
| LOW | astropy/visualization/tests/test_basic_rgb.py | 341 | def test_different_shapes_asserts(): | CODE |
| LOW | astropy/visualization/tests/test_basic_rgb.py | 349 | def test_incorrect_interval_length(): | CODE |
| LOW | astropy/visualization/tests/test_basic_rgb.py | 363 | def test_invalid_output_dtype(out_format): | CODE |
| LOW | astropy/visualization/tests/test_norm.py | 28 | def test_normalize_error_message(): | CODE |
| LOW | astropy/visualization/tests/test_interval.py | 47 | def test_manual_defaults_with_nan(self): | CODE |
| LOW⚡ | astropy/visualization/tests/test_interval.py | 67 | def test_asymmetric_percentile(self): | CODE |
| LOW⚡ | astropy/visualization/tests/test_interval.py | 73 | def test_asymmetric_percentile_nsamples(self): | CODE |
| LOW⚡ | astropy/visualization/tests/test_interval.py | 80 | def test_symmetric_interval_manual(self): | CODE |
| LOW | astropy/visualization/tests/test_interval.py | 91 | def test_symmetric_interval_auto(self): | CODE |
| LOW | astropy/visualization/tests/test_lupton_rgb.py | 273 | def test_make_rgb_incorrect_min_input(self): | CODE |
| LOW | astropy/visualization/tests/test_lupton_rgb.py | 284 | def test_make_rgb_saturated_fix(self, tmp_path): | CODE |
| LOW | astropy/visualization/tests/test_lupton_rgb.py | 343 | def test_different_shapes_asserts(self): | CODE |
| LOW | astropy/visualization/tests/test_lupton_rgb.py | 349 | def test_incorrect_input_compute_intensity_asserts(self): | CODE |
| LOW | astropy/visualization/tests/test_histogram.py | 67 | def test_histogram_pathological_input(): | CODE |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 837 | def set_axislabel_visibility_rule(self, rule): | CODE |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 889 | def get_axislabel_visibility_rule(self, rule): | CODE |
| LOW | astropy/visualization/wcsaxes/_auto.py | 8 | def auto_assign_coord_positions(ax): | CODE |
| LOW | astropy/visualization/wcsaxes/core.py | 490 | def _update_tick_and_label_positions(self, keep_coord_range=False): | CODE |
| LOW | astropy/visualization/wcsaxes/core.py | 750 | def _get_transform_no_transdata(self, frame): | CODE |
| LOW | astropy/visualization/wcsaxes/ticklabels.py | 18 | def _find_start_of_last_number(label): | CODE |
| LOW | astropy/visualization/wcsaxes/utils.py | 117 | def transform_contour_set_inplace(cset, transform): | CODE |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 62 | def custom_ucd_coord_meta_mapping(mapping, *, overwrite=False): | CODE |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 125 | def transform_coord_meta_from_wcs(wcs, frame_class, slices=None): | CODE |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 322 | def wcsapi_to_celestial_frame(wcs): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_frame.py | 74 | def test_update_clip_path_rectangular(self, tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_frame.py | 97 | def test_update_clip_path_nonrectangular(self, tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_frame.py | 119 | def test_update_clip_path_change_wcs(self, tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_frame.py | 146 | def test_copy_frame_properties_change_wcs(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 46 | def test_format_coord_regression(ignore_matplotlibrc, tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 111 | def test_invalid_frame_overlay(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 122 | def test_plot_coord_transform(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 137 | def test_scatter_coord_transform(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 152 | def test_set_label_properties(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 253 | def test_grid_type_contours_transform(tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 301 | def test_grid_contour_large_spacing(tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 362 | def test_invalid_slices_errors(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 476 | def test_simplify_labels_usetex(ignore_matplotlibrc, tmp_path): | STRING |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 518 | def test_simplify_labels_minus_sign( | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 547 | def test_set_labels_with_coords(ignore_matplotlibrc, frame_class): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 599 | def test_wcs_type_transform_regression(): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 610 | def test_multiple_draws_grid_contours(tmp_path): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 618 | def test_get_coord_range_nan_regression(): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 691 | def test_get_axislabel_default(): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 793 | def test_get_transform_unit_mismatch(): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_misc.py | 829 | def test_get_coords_overlay_elliptical_frame(ignore_matplotlibrc): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 196 | def test_overlay_features_image(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 234 | def test_curvilinear_grid_patches_image(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 313 | def test_cube_slice_image_lonlat(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 637 | def test_tick_angles_non_square_axes(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 709 | def test_axislabels_regression(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 726 | def test_noncelestial_angular(self): | CODE |
| LOW | astropy/visualization/wcsaxes/tests/test_images.py | 908 | def test_beam_shape_from_args(self, tmp_path): | CODE |
| 3215 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/periodograms/lombscargle/implementations/fast_impl.py | 108 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/periodograms/lombscargle/implementations/fast_impl.py | 131 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/coordinates/tests/test_transformations.py | 250 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | astropy/coordinates/builtin_frames/lsr.py | 95 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | astropy/coordinates/builtin_frames/lsr.py | 182 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | astropy/coordinates/builtin_frames/lsr.py | 233 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | astropy/coordinates/builtin_frames/lsr.py | 283 | # ------------------------------------------------------------------------------ | STRING |
| MEDIUM | astropy/io/ascii/basic.py | 427 | # ----------------- | STRING |
| MEDIUM | astropy/io/registry/compat.py | 57 | # ============================================================================= | COMMENT |
| MEDIUM | astropy/io/registry/interface.py | 14 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/interface.py | 137 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/core.py | 37 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/core.py | 85 | # ========================================================================= | COMMENT |
| MEDIUM | astropy/io/registry/core.py | 251 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/core.py | 266 | # ========================================================================= | COMMENT |
| MEDIUM | astropy/io/registry/core.py | 398 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/base.py | 18 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/io/registry/base.py | 210 | # ========================================================================= | COMMENT |
| MEDIUM | astropy/io/registry/base.py | 327 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | astropy/io/registry/tests/test_registries.py | 200 | # ----------------------- | COMMENT |
| MEDIUM⚡ | astropy/io/registry/tests/test_registries.py | 511 | # ----------------------- | COMMENT |
| MEDIUM⚡ | astropy/io/registry/tests/test_registries.py | 530 | # ----------------------- | COMMENT |
| MEDIUM⚡ | astropy/io/registry/tests/test_registries.py | 903 | # ----------------------- | COMMENT |
| MEDIUM⚡ | astropy/io/registry/tests/test_registries.py | 923 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 149 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 234 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 362 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 391 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 470 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 550 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 694 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 767 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 796 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 873 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 943 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 1047 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 1124 | # =========================================== | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 1175 | # ----------------------- | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 1209 | # ============================================================================= | COMMENT |
| MEDIUM | astropy/io/registry/tests/test_registries.py | 1230 | # ============================================================================= | COMMENT |
| MEDIUM | astropy/io/votable/tree.py | 1383 | # ---------------------------------------- | COMMENT |
| MEDIUM | astropy/utils/metadata/merge.py | 137 | # ============================================================================ | COMMENT |
| MEDIUM | astropy/utils/metadata/merge.py | 207 | # ============================================================================= | COMMENT |
| MEDIUM | astropy/modeling/statistic.py | 65 | # ------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/time/tests/test_parse_times_extension.py | 50 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/time/tests/test_parse_times_extension.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | astropy/time/tests/test_parse_times_extension.py | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | astropy/time/tests/test_parse_times_extension.py | 74 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | astropy/time/tests/test_parse_times_extension.py | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | astropy/time/tests/test_parse_times_extension.py | 97 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/units/physical.py | 547 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | astropy/cosmology/units.py | 30 | # =================================================================== | COMMENT |
| MEDIUM | astropy/cosmology/units.py | 36 | # ============================================================================= | COMMENT |
| MEDIUM | astropy/cosmology/_src/units_equivalencies.py | 338 | # ----------- | COMMENT |
| MEDIUM | astropy/cosmology/_src/units_equivalencies.py | 346 | # =================================================================== | COMMENT |
| MEDIUM | astropy/cosmology/_src/core.py | 172 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/cosmology/_src/core.py | 177 | # ------------------- | COMMENT |
| MEDIUM | astropy/cosmology/_src/core.py | 189 | # ------------------- | COMMENT |
| MEDIUM | astropy/cosmology/_src/core.py | 205 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | astropy/cosmology/_src/core.py | 288 | # --------------------------------------------------------------- | COMMENT |
| 352 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pyinstaller/run_astropy_tests.py | 5 | CODE | |
| LOW | .pyinstaller/run_astropy_tests.py | 9 | CODE | |
| LOW | docs/conf.py | 73 | CODE | |
| LOW | astropy/__init__.py | 13 | CODE | |
| LOW | astropy/__init__.py | 65 | CODE | |
| LOW | astropy/__init__.py | 197 | CODE | |
| LOW | astropy/__init__.py | 203 | CODE | |
| LOW | astropy/__init__.py | 203 | CODE | |
| LOW | astropy/__init__.py | 203 | CODE | |
| LOW | astropy/logger.py | 16 | CODE | |
| LOW | astropy/logger.py | 16 | CODE | |
| LOW | astropy/logger.py | 16 | CODE | |
| LOW | astropy/visualization/__init__.py | 3 | CODE | |
| LOW | astropy/visualization/__init__.py | 4 | CODE | |
| LOW | astropy/visualization/__init__.py | 5 | CODE | |
| LOW | astropy/visualization/__init__.py | 6 | CODE | |
| LOW | astropy/visualization/__init__.py | 6 | CODE | |
| LOW | astropy/visualization/__init__.py | 6 | CODE | |
| LOW | astropy/visualization/__init__.py | 7 | CODE | |
| LOW | astropy/visualization/__init__.py | 8 | CODE | |
| LOW | astropy/visualization/__init__.py | 9 | CODE | |
| LOW | astropy/visualization/__init__.py | 10 | CODE | |
| LOW | astropy/visualization/__init__.py | 11 | CODE | |
| LOW | astropy/visualization/__init__.py | 12 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 16 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 17 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 18 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 19 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 20 | CODE | |
| LOW | astropy/visualization/wcsaxes/__init__.py | 21 | CODE | |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 2 | CODE | |
| LOW | astropy/timeseries/__init__.py | 7 | CODE | |
| LOW | astropy/timeseries/__init__.py | 8 | CODE | |
| LOW | astropy/timeseries/__init__.py | 9 | CODE | |
| LOW | astropy/timeseries/__init__.py | 10 | CODE | |
| LOW | astropy/timeseries/__init__.py | 11 | CODE | |
| LOW | astropy/timeseries/__init__.py | 12 | CODE | |
| LOW | astropy/timeseries/io/__init__.py | 3 | CODE | |
| LOW | astropy/timeseries/periodograms/__init__.py | 1 | CODE | |
| LOW | astropy/timeseries/periodograms/__init__.py | 2 | CODE | |
| LOW | astropy/timeseries/periodograms/__init__.py | 3 | CODE | |
| LOW | astropy/timeseries/periodograms/__init__.py | 4 | CODE | |
| LOW | astropy/timeseries/periodograms/bls/__init__.py | 15 | CODE | |
| LOW | astropy/timeseries/periodograms/bls/__init__.py | 15 | CODE | |
| LOW | …eseries/periodograms/lombscargle_multiband/__init__.py | 3 | CODE | |
| LOW | …rams/lombscargle_multiband/implementations/__init__.py | 3 | CODE | |
| LOW | …rams/lombscargle_multiband/implementations/__init__.py | 3 | CODE | |
| LOW | …rams/lombscargle_multiband/implementations/__init__.py | 4 | CODE | |
| LOW | …rams/lombscargle_multiband/implementations/__init__.py | 5 | CODE | |
| LOW | astropy/timeseries/periodograms/lombscargle/__init__.py | 9 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 3 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 4 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 5 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 6 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 6 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 7 | CODE | |
| LOW | …s/periodograms/lombscargle/implementations/__init__.py | 8 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 54 | CODE | |
| LOW | astropy/coordinates/__init__.py | 9 | CODE | |
| LOW | astropy/coordinates/__init__.py | 10 | CODE | |
| 582 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | astropy/coordinates/sky_coordinate.py | 0 | create a new representation or differential with ``method`` applied to the component data. in typical usage, the method | STRING |
| HIGH | astropy/coordinates/baseframe.py | 0 | create a new representation or differential with ``method`` applied to the component data. in typical usage, the method | STRING |
| HIGH | astropy/coordinates/representation/base.py | 0 | create a new representation or differential with ``method`` applied to the component data. in typical usage, the method | STRING |
| HIGH | astropy/coordinates/baseframe.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/coordinates/earth.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/coordinates/representation/base.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/time/core.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/units/quantity.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/table/column.py | 0 | container for meta information like name, description, format. this is required when the object is used as a mixin colum | STRING |
| HIGH | astropy/coordinates/polarization.py | 0 | return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for c | STRING |
| HIGH | astropy/coordinates/earth.py | 0 | return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for c | STRING |
| HIGH | astropy/units/quantity.py | 0 | return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for c | STRING |
| HIGH | astropy/table/column.py | 0 | return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for c | STRING |
| HIGH | astropy/coordinates/builtin_frames/equatorial.py | 0 | other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for de | STRING |
| HIGH | astropy/coordinates/builtin_frames/itrs.py | 0 | other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for de | STRING |
| HIGH | astropy/coordinates/builtin_frames/cirs.py | 0 | other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for de | STRING |
| HIGH | astropy/constants/astropyconst80.py | 0 | astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants de | STRING |
| HIGH | astropy/constants/astropyconst20.py | 0 | astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants de | STRING |
| HIGH | astropy/constants/astropyconst40.py | 0 | astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants de | STRING |
| HIGH | astropy/constants/iau2012.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/si.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/codata2014.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/codata2010.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/codata2022.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/codata2018.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/iau2015.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/constants/cgs.py | 0 | astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants define | STRING |
| HIGH | astropy/io/misc/parquet.py | 0 | this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead a | STRING |
| HIGH | astropy/io/misc/hdf5.py | 0 | this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead a | STRING |
| HIGH | astropy/io/ascii/qdp.py | 0 | this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead a | STRING |
| HIGH | astropy/io/misc/tests/test_parquet.py | 0 | test writing as qtable and reading as table. ensure correct classes come out. | STRING |
| HIGH | astropy/io/misc/tests/test_hdf5.py | 0 | test writing as qtable and reading as table. ensure correct classes come out. | STRING |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 0 | test writing as qtable and reading as table. ensure correct classes come out. | STRING |
| HIGH | astropy/io/fits/tests/test_connect.py | 0 | test writing as qtable and reading as table. ensure correct classes come out. | STRING |
| HIGH | astropy/io/misc/tests/test_parquet.py | 0 | test write/read all cols at once and validate intermediate column names | STRING |
| HIGH | astropy/io/misc/tests/test_hdf5.py | 0 | test write/read all cols at once and validate intermediate column names | STRING |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 0 | test write/read all cols at once and validate intermediate column names | STRING |
| HIGH | astropy/io/fits/tests/test_connect.py | 0 | test write/read all cols at once and validate intermediate column names | STRING |
| HIGH | astropy/io/misc/tests/test_parquet.py | 0 | test write/read one col at a time and do detailed validation | STRING |
| HIGH | astropy/io/misc/tests/test_hdf5.py | 0 | test write/read one col at a time and do detailed validation | STRING |
| HIGH | astropy/io/fits/tests/test_connect.py | 0 | test write/read one col at a time and do detailed validation | STRING |
| HIGH | astropy/io/misc/tests/test_hdf5.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/io/ascii/tests/test_write.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/io/votable/tests/test_table.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/table/tests/test_table.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/io/ascii/tests/test_read.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/nddata/tests/test_ccddata.py | 0 | pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempo | STRING |
| HIGH | astropy/io/ascii/ipac.py | 0 | initialize the header column objects from the table ``lines``. based on the previously set header attributes find or cre | STRING |
| HIGH | astropy/io/ascii/core.py | 0 | initialize the header column objects from the table ``lines``. based on the previously set header attributes find or cre | STRING |
| HIGH | astropy/io/ascii/fixedwidth.py | 0 | initialize the header column objects from the table ``lines``. based on the previously set header attributes find or cre | STRING |
| HIGH | astropy/io/ascii/fastbasic.py | 0 | read input data (file-like object, filename, list of strings, or single string) into a table and return the result. | STRING |
| HIGH | astropy/io/ascii/basic.py | 0 | read input data (file-like object, filename, list of strings, or single string) into a table and return the result. | STRING |
| HIGH | astropy/io/ascii/sextractor.py | 0 | read input data (file-like object, filename, list of strings, or single string) into a table and return the result. | STRING |
| HIGH | astropy/io/fits/hdu/groups.py | 0 | calculate the value for the ``datasum`` card in the hdu. | STRING |
| HIGH | astropy/io/fits/hdu/table.py | 0 | calculate the value for the ``datasum`` card in the hdu. | STRING |
| HIGH | astropy/io/fits/hdu/image.py | 0 | calculate the value for the ``datasum`` card in the hdu. | STRING |
| HIGH | astropy/io/fits/hdu/base.py | 0 | calculate the value for the ``datasum`` card in the hdu. | STRING |
| HIGH | astropy/units/misc.py | 0 | this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astro | STRING |
| HIGH | astropy/units/si.py | 0 | this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astro | STRING |
| HIGH | astropy/units/cgs.py | 0 | this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astro | STRING |
| 52 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 256 | CODE | |
| LOW | astropy/logger.py | 129 | CODE | |
| LOW | astropy/logger.py | 559 | CODE | |
| LOW | astropy/visualization/time.py | 19 | CODE | |
| LOW | astropy/visualization/time.py | 60 | CODE | |
| LOW | astropy/visualization/time.py | 155 | CODE | |
| LOW | astropy/visualization/mpl_normalize.py | 323 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 966 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 1123 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 259 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 330 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 350 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 404 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 596 | CODE | |
| LOW | astropy/visualization/wcsaxes/_auto.py | 8 | CODE | |
| LOW | astropy/visualization/wcsaxes/core.py | 284 | CODE | |
| LOW | astropy/visualization/wcsaxes/core.py | 750 | CODE | |
| LOW | astropy/visualization/wcsaxes/core.py | 855 | CODE | |
| LOW | astropy/visualization/wcsaxes/axislabels.py | 61 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinate_range.py | 23 | CODE | |
| LOW | astropy/visualization/wcsaxes/ticklabels.py | 148 | CODE | |
| LOW | astropy/visualization/wcsaxes/ticklabels.py | 208 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinates_map.py | 46 | CODE | |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 125 | CODE | |
| LOW | astropy/visualization/wcsaxes/tests/test_wcsapi.py | 96 | CODE | |
| LOW | astropy/timeseries/downsample.py | 84 | CODE | |
| LOW | astropy/timeseries/sampled.py | 155 | CODE | |
| LOW | astropy/timeseries/binned.py | 73 | CODE | |
| LOW | astropy/timeseries/binned.py | 254 | CODE | |
| LOW | astropy/timeseries/periodograms/bls/tests/test_bls.py | 371 | CODE | |
| LOW | …bscargle_multiband/tests/test_lombscargle_multiband.py | 596 | CODE | |
| LOW | astropy/timeseries/periodograms/lombscargle/utils.py | 39 | CODE | |
| LOW | …opy/timeseries/periodograms/lombscargle/_statistics.py | 50 | CODE | |
| LOW | …opy/timeseries/periodograms/lombscargle/_statistics.py | 99 | CODE | |
| LOW | …opy/timeseries/periodograms/lombscargle/_statistics.py | 149 | CODE | |
| LOW | …opy/timeseries/periodograms/lombscargle/_statistics.py | 237 | CODE | |
| LOW | …iodograms/lombscargle/implementations/fastchi2_impl.py | 8 | CODE | |
| LOW | …periodograms/lombscargle/implementations/scipy_impl.py | 6 | CODE | |
| LOW | …ries/periodograms/lombscargle/implementations/utils.py | 15 | CODE | |
| LOW | …eries/periodograms/lombscargle/implementations/main.py | 78 | CODE | |
| LOW | …/periodograms/lombscargle/implementations/chi2_impl.py | 6 | CODE | |
| LOW | …/periodograms/lombscargle/implementations/slow_impl.py | 4 | CODE | |
| LOW | …/periodograms/lombscargle/implementations/fast_impl.py | 6 | CODE | |
| LOW | astropy/coordinates/sky_coordinate.py | 466 | CODE | |
| LOW | astropy/coordinates/sky_coordinate.py | 949 | CODE | |
| LOW | astropy/coordinates/sky_coordinate.py | 1726 | CODE | |
| LOW | astropy/coordinates/distances.py | 103 | CODE | |
| LOW | astropy/coordinates/attributes.py | 122 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 91 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 194 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 624 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 652 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 1077 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 1263 | CODE | |
| LOW | astropy/coordinates/baseframe.py | 1728 | CODE | |
| LOW | astropy/coordinates/calculation.py | 29 | CODE | |
| LOW | astropy/coordinates/calculation.py | 122 | CODE | |
| LOW | astropy/coordinates/solar_system.py | 198 | CODE | |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 73 | CODE | |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 346 | CODE | |
| 491 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | astropy/wcs/docstrings.py | 90 | of a target body used in projection (m). If undefined, this is set to `None`. | CODE |
| HIGH⚡ | astropy/wcs/docstrings.py | 172 | of a target body used in projection (m). If undefined, this is set to `None`. | CODE |
| HIGH⚡ | astropy/wcs/docstrings.py | 177 | If undefined, this is set to `None`. | CODE |
| HIGH⚡ | astropy/wcs/docstrings.py | 183 | If undefined, this is set to `None`. | CODE |
| HIGH⚡ | astropy/wcs/docstrings.py | 188 | of the target body (deg). If undefined, this is set to `None`. | CODE |
| HIGH⚡ | astropy/wcs/docstrings.py | 193 | of a target body used in projection (m). If undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/docstrings.py | 812 | undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/docstrings.py | 1051 | undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/docstrings.py | 1357 | undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/docstrings.py | 1362 | (deg). If undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/docstrings.py | 1918 | If undefined, this is set to `None`. | CODE |
| HIGH | astropy/wcs/wcsapi/low_level_api.py | 41 | unknown/undefined, an element can be `None`. | STRING |
| HIGH | astropy/wcs/wcsapi/tests/test_fitswcs.py | 1698 | # when the equinox was undefined, because the NaN it contributed to the | STRING |
| HIGH | astropy/io/misc/ecsv.py | 595 | # Subtype can be written like "int64[2,null]" and we want to split this | COMMENT |
| HIGH | astropy/io/misc/ecsv.py | 912 | "{""b"":[2.5,null]}" | STRING |
| HIGH | astropy/io/misc/ecsv.py | 962 | [[6.0,7.0],[8.0,null],[10.0,11.0]] | STRING |
| HIGH | astropy/io/misc/ecsv.py | 983 | # like "[[null, null],[null,null]]" so subsequent JSON | COMMENT |
| HIGH | astropy/io/misc/ecsv.py | 1024 | # - {name: array_var, datatype: string, subtype: 'int64[null]'} | STRING |
| HIGH | astropy/io/misc/ecsv.py | 1028 | [3,4,5,null,7] | STRING |
| HIGH | astropy/io/ascii/ipac.py | 215 | self.data.fill_values.append((null, fillval, col.name)) | CODE |
| HIGH⚡ | astropy/io/ascii/ipac.py | 301 | nullist.append((format_func(col_format, null)).strip()) | CODE |
| HIGH⚡ | astropy/io/ascii/ipac.py | 307 | nullist.append(str(null).strip()) | CODE |
| HIGH | astropy/io/ascii/ecsv.py | 255 | # Subtype is written like "int64[2,null]" and we want to split this | COMMENT |
| HIGH | astropy/io/ascii/ecsv.py | 361 | # like "[[null, null],[null,null]]" so subsequent JSON | COMMENT |
| HIGH | astropy/io/ascii/ui.py | 495 | # Static analysis (pyright) indicates `dat` might be left undefined, so just | COMMENT |
| HIGH | astropy/io/ascii/cds.py | 217 | self.data.fill_values.append((col.null, fillval, col.name)) | CODE |
| HIGH | astropy/io/ascii/fixedwidth.py | 184 | zero length (e.g. for ``header row = "| col1 || col2 | col3 |"`` or | STRING |
| HIGH⚡ | astropy/io/ascii/tests/test_ecsv.py | 1187 | # - {name: v, datatype: string, subtype: 'int64[null]'} | COMMENT |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 1152 | # - {name: v, datatype: string, subtype: 'int64[null]'} | COMMENT |
| HIGH⚡ | astropy/io/ascii/tests/test_ecsv.py | 1190 | [1,null] [1,null] | CODE |
| HIGH⚡ | astropy/io/ascii/tests/test_ecsv.py | 1191 | [null,4] [null,4,5] | CODE |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 982 | "subtype": "float32[2,null]", | CODE |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 997 | {"datatype": "string", "name": "1-d variable array numpy", "subtype": "uint8[null]"} | CODE |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 1007 | "subtype": "string[null]", | CODE |
| HIGH | astropy/io/ascii/tests/test_ecsv.py | 1018 | "subtype": "bool[null]", | CODE |
| HIGH⚡ | astropy/io/ascii/tests/test_fixedwidth.py | 97 | || Name || Phone || TCP|| | CODE |
| HIGH | astropy/io/fits/util.py | 844 | # i-th character is 0 (null) and the i-1-th is 32 (space) and repeat. | COMMENT |
| HIGH | astropy/io/fits/fitsrec.py | 392 | # (undefined); a column created without data should instead | COMMENT |
| HIGH | astropy/io/fits/fitsrec.py | 909 | "(undefined) values which will be converted to False. To " | CODE |
| HIGH | astropy/io/fits/fitsrec.py | 975 | nullval = str(column.null).strip().encode("ascii") | CODE |
| HIGH | astropy/io/fits/fitsrec.py | 1131 | f"Column '{column.name}' contains NULL (undefined) values " | CODE |
| HIGH⚡ | astropy/io/fits/column.py | 1101 | null = str(null) | CODE |
| HIGH⚡ | astropy/io/fits/column.py | 1102 | if len(null) > format.width: | CODE |
| HIGH⚡ | astropy/io/fits/column.py | 1111 | if not _is_int(null): | CODE |
| HIGH | astropy/io/fits/column.py | 1139 | invalid["null"] = (null, msg) | CODE |
| HIGH⚡ | astropy/io/votable/tree.py | 1005 | def null(self, null): | CODE |
| HIGH⚡ | astropy/io/votable/tree.py | 1006 | if null is not None and isinstance(null, str): | CODE |
| HIGH⚡ | astropy/io/votable/tree.py | 1009 | null, self._config, self._pos | CODE |
| HIGH⚡ | astropy/io/votable/tree.py | 1012 | warn_or_raise(W36, W36, null, self._config, self._pos) | CODE |
| HIGH | astropy/io/votable/converters.py | 699 | self.null = np.asarray(field.values.null, dtype=self.format) | CODE |
| HIGH | astropy/io/votable/converters.py | 727 | self._fast_null_param = float(self.null) | CODE |
| HIGH | astropy/io/votable/converters.py | 763 | self._null_output = self.output(np.asarray(self.null), False) | CODE |
| HIGH | astropy/io/votable/converters.py | 764 | self._null_binoutput = self.binoutput(np.asarray(self.null), False) | CODE |
| HIGH | astropy/io/votable/converters.py | 777 | return self.null, True | CODE |
| HIGH | astropy/io/votable/converters.py | 790 | return self.null, True | CODE |
| HIGH | astropy/io/votable/converters.py | 828 | return np.where(mask, self.null, value) | CODE |
| HIGH | astropy/io/votable/converters.py | 866 | self._fast_null_param = int(self.null) | CODE |
| HIGH | astropy/io/votable/converters.py | 917 | return str(self.null) | CODE |
| HIGH | astropy/io/votable/converters.py | 933 | return np.where(mask, self.null, value) | CODE |
| HIGH⚡ | astropy/io/votable/tests/test_converter.py | 129 | assert c.parse("") == (c.null, True) | CODE |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | conftest.py | 3 | # This file is the main file used when running tests with pytest directly, | COMMENT |
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | docs/wcs/examples/planetary_wcs.py | 1 | # Create a planetary WCS structure | COMMENT |
| MEDIUM | docs/wcs/examples/cube_wcs.py | 1 | # Define the astropy.wcs.WCS object using a Python dictionary as input | COMMENT |
| MEDIUM | docs/wcs/examples/programmatic.py | 9 | # Create a new WCS object. The number of axes must be set | COMMENT |
| MEDIUM | astropy/version.py | 4 | # This file is not included in astropy wheels/tarballs, so otherwise it will | COMMENT |
| MEDIUM | astropy/__init__.py | 109 | # Define a base ScienceState for configuring constants and units | COMMENT |
| MEDIUM | astropy/__init__.py | 181 | # Create the test() function | COMMENT |
| MEDIUM | astropy/visualization/mpl_style.py | 3 | # This module contains dictionaries that can be used to set a matplotlib | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/coordinate_helpers.py | 1022 | # Define a helper function to minimize code repetition | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/transforms.py | 6 | # This file contains Matplotlib transformation objects (e.g. from pixel to world | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/formatter_locator.py | 4 | # This file defines the AngleFormatterLocator class which is a class that | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/grid_paths.py | 42 | # Define the relevant scale size using the separation between the first two points | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/grid_paths.py | 87 | # Create the path | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/grid_paths.py | 119 | # Create the path | COMMENT |
| MEDIUM | astropy/visualization/wcsaxes/patches.py | 44 | # Create a representation object | COMMENT |
| MEDIUM⚡ | astropy/visualization/wcsaxes/tests/test_grid_paths.py | 15 | # Create a grid line of constant latitude with a point every step | COMMENT |
| MEDIUM⚡ | astropy/visualization/wcsaxes/tests/test_grid_paths.py | 18 | # Create a modified grid line where the point spacing is larger by 5% | COMMENT |
| MEDIUM | astropy/timeseries/downsample.py | 32 | # Create a writeable copy and set masked/NaN elements to zero. | COMMENT |
| MEDIUM | …s/lombscargle_multiband/implementations/mbflex_impl.py | 30 | # Create a ones array for dy (errors) if not provided | COMMENT |
| MEDIUM | astropy/coordinates/transformations/composite.py | 132 | # Create a list of the transforms including flattening any constituent CompositeTransform | COMMENT |
| MEDIUM | astropy/coordinates/transformations/composite.py | 150 | # Create a merged attribute dictionary for any intermediate frames | COMMENT |
| MEDIUM | astropy/coordinates/tests/test_sky_coord.py | 1632 | # Create a SkyCoord where obsgeoloc tags along as an extra attribute | COMMENT |
| MEDIUM | astropy/coordinates/tests/test_sky_coord.py | 2030 | # Define a frame with multiple aliases | STRING |
| MEDIUM | astropy/coordinates/tests/test_frames.py | 872 | # Create the frame object. | COMMENT |
| MEDIUM | astropy/coordinates/tests/test_transformations.py | 542 | # Define a frame with multiple aliases | COMMENT |
| MEDIUM | astropy/coordinates/tests/accuracy/test_ecliptic.py | 112 | # Create a coordinate with zero speed in ICRS | COMMENT |
| MEDIUM | astropy/coordinates/builtin_frames/skyoffset.py | 43 | # Create a new SkyOffsetFrame subclass for this frame class. | COMMENT |
| MEDIUM | astropy/coordinates/angles/core.py | 339 | # Create an iterator so we can format each element of what | COMMENT |
| MEDIUM | astropy/coordinates/angles/angle_parsetab.py | 13 | # This file is automatically generated. Do not edit. | COMMENT |
| MEDIUM | astropy/wcs/utils.py | 215 | # Create a 2-dimensional WCS | COMMENT |
| MEDIUM | astropy/wcs/utils.py | 755 | # Create a SkyCoord-like object | STRING |
| MEDIUM | astropy/io/misc/parquet.py | 479 | # Create a pyarrow table from the list of arrays and the schema | COMMENT |
| MEDIUM | astropy/io/misc/parquet.py | 680 | # Create an empty Astropy table inheriting all the column metadata | COMMENT |
| MEDIUM | astropy/io/misc/ecsv.py | 1231 | # Create the Table object | COMMENT |
| MEDIUM | astropy/io/misc/hdf5.py | 91 | # This function is iterative, and only gets to writing the file when | COMMENT |
| MEDIUM | astropy/io/misc/hdf5.py | 151 | # Create a Table object | COMMENT |
| MEDIUM | astropy/io/ascii/ecsv.py | 209 | # Create the list of io.ascii column objects from `header` | COMMENT |
| MEDIUM | astropy/io/ascii/ui.py | 237 | # This function is a light wrapper around core._get_reader to provide a | STRING |
| MEDIUM | astropy/io/ascii/mrt.py | 684 | # Create a copy of the ``table``, so that it the copy gets modified and | COMMENT |
| MEDIUM | astropy/io/ascii/daophot.py | 168 | # Create the list of io.ascii column objects | COMMENT |
| MEDIUM | astropy/io/ascii/tests/test_ecsv.py | 931 | # Define a number of specialized columns for testing and the expected values | COMMENT |
| MEDIUM | astropy/io/ascii/tests/test_ecsv.py | 1244 | # Create a table and write to a file | STRING |
| MEDIUM | astropy/io/fits/convenience.py | 522 | # Create a new HDU object | COMMENT |
| MEDIUM | astropy/io/fits/convenience.py | 950 | # This function is EXCLUSIVELY for printing the diff report to screen | COMMENT |
| MEDIUM | astropy/io/fits/convenience.py | 1003 | # Create the default data file name if one was not provided | COMMENT |
| MEDIUM | astropy/io/fits/header.py | 931 | # Create a temporary card that looks like the one being set; if the | STRING |
| MEDIUM | astropy/io/fits/header.py | 1977 | """This class provides a fast header parsing, without all the additional | STRING |
| MEDIUM | astropy/io/fits/hdu/table.py | 437 | # Create a new table with the same columns, but empty rows | COMMENT |
| MEDIUM | astropy/io/fits/hdu/table.py | 1226 | # Create a new HDU using the supplied header and data | COMMENT |
| MEDIUM | astropy/io/fits/hdu/hdulist.py | 1212 | # This method is currently only called from HDUList.fromstring and | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/header.py | 334 | # Create the first column for the table. This column holds the | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/header.py | 338 | # Create the additional columns required for floating point | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/header.py | 386 | # Create the ColDefs object for the table | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/header.py | 392 | # Create the ColDefs object for the table | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/tests/test_compressed.py | 239 | # Create a compressed FITS file | COMMENT |
| MEDIUM | astropy/io/fits/hdu/compressed/tests/test_compressed.py | 384 | # Create a compressed version of the scaled image | COMMENT |
| MEDIUM⚡ | astropy/io/fits/hdu/compressed/tests/test_compressed.py | 1551 | # Create a PrimaryHDU with some data | STRING |
| MEDIUM⚡ | astropy/io/fits/hdu/compressed/tests/test_compressed.py | 1554 | # Create a CompImageHDU using the PrimaryHDU's header | STRING |
| MEDIUM | astropy/io/fits/hdu/compressed/tests/test_compressed.py | 1514 | # Create a CompImageHDU using a PrimaryHDU's header | STRING |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | astropy/__init__.py | 15 | __all__ = [ # noqa: RUF100, RUF022 | CODE |
| LOW | astropy/logger.py | 32 | __all__ = [ | CODE |
| LOW | astropy/visualization/time.py | 10 | __all__ = ["time_support"] | CODE |
| LOW | astropy/visualization/hist.py | 5 | __all__ = ["hist"] | CODE |
| LOW | astropy/visualization/units.py | 10 | __all__ = ["MplQuantityConverter", "quantity_support"] | CODE |
| LOW | astropy/visualization/mpl_style.py | 7 | __all__ = ["astropy_mpl_style", "astropy_mpl_style_1"] | CODE |
| LOW | astropy/visualization/stretch.py | 12 | __all__ = [ | CODE |
| LOW | astropy/visualization/interval.py | 16 | __all__ = [ | CODE |
| LOW | astropy/visualization/lupton_rgb.py | 19 | __all__ = [ | CODE |
| LOW | astropy/visualization/transform.py | 4 | __all__ = ["BaseTransform", "CompositeTransform"] | CODE |
| LOW | astropy/visualization/mpl_normalize.py | 40 | __all__ = [ | CODE |
| LOW | astropy/visualization/basic_rgb.py | 15 | __all__ = ["make_rgb"] | CODE |
| LOW | astropy/visualization/scripts/fits2bitmap.py | 9 | __all__ = ["fits2bitmap", "main"] | CODE |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 27 | __all__ = ["CoordinateHelper"] | CODE |
| LOW | astropy/visualization/wcsaxes/transforms.py | 23 | __all__ = [ | CODE |
| LOW | astropy/visualization/wcsaxes/_auto.py | 5 | __all__ = ["auto_assign_coord_positions"] | CODE |
| LOW | astropy/visualization/wcsaxes/core.py | 24 | __all__ = ["WCSAxes", "WCSAxesSubplot"] | CODE |
| LOW | astropy/visualization/wcsaxes/patches.py | 18 | __all__ = ["Quadrangle", "SphericalCircle"] | CODE |
| LOW | astropy/visualization/wcsaxes/utils.py | 7 | __all__ = [ | CODE |
| LOW | astropy/visualization/wcsaxes/frame.py | 15 | __all__ = [ | CODE |
| LOW | astropy/visualization/wcsaxes/helpers.py | 15 | __all__ = ["add_beam", "add_scalebar"] | CODE |
| LOW | astropy/visualization/wcsaxes/wcsapi.py | 16 | __all__ = [ | CODE |
| LOW | astropy/timeseries/downsample.py | 15 | __all__ = ["aggregate_downsample"] | CODE |
| LOW | astropy/timeseries/core.py | 9 | __all__ = ["BaseTimeSeries", "autocheck_required_columns"] | CODE |
| LOW | astropy/timeseries/sampled.py | 13 | __all__ = ["TimeSeries"] | CODE |
| LOW | astropy/timeseries/binned.py | 13 | __all__ = ["BinnedTimeSeries"] | CODE |
| LOW | astropy/timeseries/io/kepler.py | 11 | __all__ = ["kepler_fits_reader"] | CODE |
| LOW | astropy/timeseries/periodograms/base.py | 8 | __all__ = ["BasePeriodogram"] | CODE |
| LOW | astropy/timeseries/periodograms/bls/methods.py | 3 | __all__ = ["bls_fast", "bls_slow"] | CODE |
| LOW | astropy/timeseries/periodograms/bls/__init__.py | 13 | __all__ = ["BoxLeastSquares", "BoxLeastSquaresResults"] | CODE |
| LOW | astropy/timeseries/periodograms/bls/core.py | 3 | __all__ = ["BoxLeastSquares", "BoxLeastSquaresResults"] | CODE |
| LOW | …/timeseries/periodograms/lombscargle_multiband/core.py | 14 | __all__ = ["LombScargleMultiband"] | CODE |
| LOW | …s/lombscargle_multiband/implementations/mbflex_impl.py | 3 | __all__ = ["lombscargle_mbflex"] | CODE |
| LOW | …s/lombscargle_multiband/implementations/mbfast_impl.py | 5 | __all__ = ["lombscargle_mbfast"] | CODE |
| LOW | …iodograms/lombscargle_multiband/implementations/mle.py | 3 | __all__ = ["construct_regularization", "design_matrix", "periodic_fit"] | CODE |
| LOW | …odograms/lombscargle_multiband/implementations/main.py | 8 | __all__ = ["available_methods", "lombscargle_multiband"] | CODE |
| LOW | …eries/periodograms/lombscargle/implementations/main.py | 8 | __all__ = ["available_methods", "lombscargle"] | CODE |
| LOW | astropy/coordinates/sky_coordinate.py | 39 | __all__ = ["SkyCoord", "SkyCoordInfo"] | CODE |
| LOW | astropy/coordinates/distances.py | 17 | __all__ = ["Distance"] | CODE |
| LOW | astropy/coordinates/attributes.py | 14 | __all__ = [ | CODE |
| LOW | astropy/coordinates/baseframe.py | 7 | __all__ = [ | CODE |
| LOW | astropy/coordinates/matching.py | 18 | __all__ = [ | CODE |
| LOW | astropy/coordinates/solar_system.py | 27 | __all__ = [ | CODE |
| LOW | astropy/coordinates/funcs.py | 27 | __all__ = [ | CODE |
| LOW | astropy/coordinates/spectral_coordinate.py | 18 | __all__ = ["SpectralCoord"] | CODE |
| LOW | astropy/coordinates/matrix_utilities.py | 7 | __all__ = ["is_rotation_or_reflection", "rotation_matrix"] | CODE |
| LOW | astropy/coordinates/name_resolve.py | 26 | __all__ = ["get_icrs_coordinates"] | CODE |
| LOW | astropy/coordinates/polarization.py | 11 | __all__ = ["StokesCoord", "StokesSymbol", "custom_stokes_symbol_mapping"] | CODE |
| LOW | astropy/coordinates/spectral_quantity.py | 8 | __all__ = ["SpectralQuantity"] | CODE |
| LOW | astropy/coordinates/errors.py | 5 | __all__ = [ | CODE |
| LOW | astropy/coordinates/earth.py | 28 | __all__ = [ | CODE |
| LOW | astropy/coordinates/transformations/graph.py | 29 | __all__ = ["TransformGraph"] | CODE |
| LOW | astropy/coordinates/transformations/affine.py | 18 | __all__ = [ | CODE |
| LOW | astropy/coordinates/transformations/composite.py | 22 | __all__ = ["CompositeTransform"] | CODE |
| LOW | astropy/coordinates/transformations/base.py | 14 | __all__ = ["CoordinateTransform"] | CODE |
| LOW | astropy/coordinates/transformations/function.py | 18 | __all__ = ["FunctionTransform", "FunctionTransformWithFiniteDifference"] | CODE |
| LOW | astropy/coordinates/representation/__init__.py | 41 | __all__ = [ | CODE |
| LOW | astropy/coordinates/builtin_frames/altaz.py | 19 | __all__ = ["AltAz"] | CODE |
| LOW | astropy/coordinates/builtin_frames/equatorial.py | 25 | __all__ = ["TEME", "TETE"] | CODE |
| 193 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 1 | # Licensed under a 3-clause BSD style license - see LICENSE.rst | COMMENT |
| LOW | docs/wcs/examples/programmatic.py | 21 | # Three pixel coordinates of interest. | COMMENT |
| LOW | docs/wcs/examples/from_file.py | 21 | COMMENT | |
| LOW | cextern/trim_cfitsio.sh | 41 | # file. If there are compilation issues after updating, it may be that | COMMENT |
| LOW | cextern/expat/lib/internal.h | 81 | COMMENT | |
| LOW | cextern/expat/lib/internal.h | 101 | COMMENT | |
| LOW | cextern/expat/lib/internal.h | 121 | # define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "d" | COMMENT |
| LOW | cextern/expat/lib/xmltok.h | 61 | */ | COMMENT |
| LOW | cextern/expat/lib/xmltok.h | 81 | /* The following tokens are returned only by XmlPrologTok */ | COMMENT |
| LOW | cextern/expat/lib/xmltok.h | 101 | # define XML_TOK_NAME_PLUS 32 /* name+ */ | COMMENT |
| LOW | cextern/expat/lib/xmltok.h | 121 | # define XML_TOK_IGNORE_SECT 42 | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 81 | # error XML_CONTEXT_BYTES must be defined, non-empty and >=0 (0 to disable, >=1 to enable; 1024 is a common default) | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 101 | #include <limits.h> /* INT_MAX, UINT_MAX */ | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 121 | #include "ascii.h" | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 161 | * Windows >=Vista (rand_s): _WIN32. \ | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 181 | # define XmlGetInternalEncoding XmlGetUtf8InternalEncoding | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 201 | # define XML_T(x) (const wchar_t) x | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 781 | ACCOUNTING m_accounting; | COMMENT |
| LOW | cextern/expat/lib/xmlparse.c | 4461 | // element names ("qualified names") of form | COMMENT |
| LOW | cextern/expat/lib/expat_external.h | 81 | platform's malloc() implementation. | COMMENT |
| LOW | cextern/expat/lib/expat_external.h | 101 | # endif | COMMENT |
| LOW | cextern/expat/lib/expat_external.h | 121 | # define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) | COMMENT |
| LOW | cextern/expat/lib/winconfig.h | 41 | #endif | COMMENT |
| LOW | cextern/expat/lib/ascii.h | 41 | #define ASCII_F 0x46 | COMMENT |
| LOW | cextern/expat/lib/ascii.h | 61 | #define ASCII_Z 0x5A | COMMENT |
| LOW | cextern/expat/lib/ascii.h | 81 | #define ASCII_s 0x73 | COMMENT |
| LOW | cextern/expat/lib/ascii.h | 101 | #define ASCII_TAB 0x09 | COMMENT |
| LOW | cextern/expat/lib/ascii.h | 121 | #define ASCII_HASH 0x23 | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 241 | # define MINBPC(enc) ((enc)->minBytesPerChar) | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 261 | # define BYTE_TO_ASCII(enc, p) (AS_NORMAL_ENCODING(enc)->byteToAscii(enc, p)) | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 301 | /* c is an ASCII character */ | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 781 | #else /* not XML_MIN_SIZE */ | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 801 | # undef BYTE_TO_ASCII | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 861 | { | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 921 | # define BYTE_TO_ASCII(enc, p) BIG2_BYTE_TO_ASCII(p) | COMMENT |
| LOW | cextern/expat/lib/xmltok.c | 1641 | } | COMMENT |
| LOW | cextern/wcslib/C/wcstrig.h | 161 | COMMENT | |
| LOW | cextern/wcslib/C/wcstrig.h | 181 | #define acosd(X) acos(X)*R2D | COMMENT |
| LOW | cextern/wcslib/C/lin.h | 801 | #define linfree_errmsg lin_errmsg | COMMENT |
| LOW | cextern/wcslib/C/spc.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/spc.c | 41 | #define A2S 300; // Axis linear in air wavelengths. | COMMENT |
| LOW | cextern/wcslib/C/wcsfix.h | 581 | * | COMMENT |
| LOW | cextern/wcslib/C/wcslib.h | 41 | #include "fitshdr.h" | COMMENT |
| LOW | cextern/wcslib/C/wcs.h | 2321 | // Defined mainly for backwards compatibility, use wcssub() instead. | COMMENT |
| LOW | cextern/wcslib/C/wcserr.c | 21 | Module author: Michael Droettboom | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 601 | * Specifically the keywords are: | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 641 | # TIMEUNIT - | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 661 | # XPOSURE - | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 741 | # CROTAi for iCROTn | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 1281 | #ifdef __cplusplus | COMMENT |
| LOW | cextern/wcslib/C/wcshdr.h | 1301 | #define WCSHDR_RADECSYS 0x00000800 | COMMENT |
| LOW | cextern/wcslib/C/tab.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/wcsfix.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/prj.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/spc.h | 881 | COMMENT | |
| LOW | cextern/wcslib/C/dis.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/dis.c | 1661 | COMMENT | |
| LOW | cextern/wcslib/C/wcs.c | 21 | http://www.atnf.csiro.au/computing/software/wcs | COMMENT |
| LOW | cextern/wcslib/C/wcs.c | 41 | #include "dis.h" | COMMENT |
| LOW | cextern/wcslib/C/wcs.c | 3441 | // : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : | COMMENT |
| 208 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 280 | except Exception: | CODE |
| LOW | astropy/version.py | 11 | except Exception: | CODE |
| LOW | astropy/version.py | 31 | except Exception: | CODE |
| LOW | astropy/logger.py | 156 | except Exception: | CODE |
| LOW | astropy/logger.py | 237 | except Exception: | CODE |
| LOW | astropy/visualization/scripts/fits2bitmap.py | 91 | except Exception as e: | CODE |
| LOW | astropy/coordinates/sky_coordinate.py | 510 | except Exception: | CODE |
| LOW | astropy/coordinates/sky_coordinate.py | 1514 | except Exception: | STRING |
| LOW | astropy/coordinates/attributes.py | 212 | except Exception as err: | CODE |
| LOW | astropy/coordinates/baseframe.py | 291 | except Exception as err: | CODE |
| LOW | astropy/coordinates/baseframe.py | 596 | except Exception: | STRING |
| LOW | astropy/coordinates/baseframe.py | 717 | except Exception: | STRING |
| LOW | astropy/coordinates/baseframe.py | 1426 | except Exception: | STRING |
| LOW | astropy/coordinates/calculation.py | 183 | except Exception: | CODE |
| LOW | astropy/coordinates/calculation.py | 185 | except Exception: | CODE |
| LOW | astropy/coordinates/calculation.py | 213 | except Exception: | CODE |
| LOW | astropy/coordinates/solar_system.py | 189 | except Exception: | CODE |
| LOW | astropy/coordinates/polarization.py | 248 | except Exception: | CODE |
| MEDIUM | astropy/coordinates/polarization.py | 245 | def __eq__(self, other): | CODE |
| LOW | astropy/coordinates/earth.py | 225 | except Exception as exc_geodetic: | CODE |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 337 | except Exception as err: | STRING |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 492 | except Exception as err: | STRING |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 531 | except Exception as err: | STRING |
| LOW | astropy/coordinates/tests/test_sky_coord_velocities.py | 142 | except Exception as e: | CODE |
| LOW | astropy/coordinates/representation/cartesian.py | 206 | except Exception: | CODE |
| LOW | astropy/coordinates/representation/cartesian.py | 279 | except Exception as err: | CODE |
| LOW | astropy/coordinates/representation/cartesian.py | 303 | except Exception as err: | CODE |
| LOW | astropy/coordinates/representation/spherical.py | 395 | except Exception: | CODE |
| LOW | astropy/coordinates/representation/base.py | 123 | except Exception as err: | CODE |
| LOW | astropy/coordinates/representation/base.py | 473 | except Exception: | CODE |
| LOW | astropy/coordinates/representation/base.py | 906 | except Exception as err: | STRING |
| LOW | astropy/coordinates/representation/base.py | 1160 | except Exception: | STRING |
| LOW | astropy/coordinates/representation/base.py | 1204 | except Exception: | STRING |
| LOW | astropy/config/paths.py | 659 | except Exception: | STRING |
| LOW | astropy/config/paths.py | 665 | except Exception: | STRING |
| LOW | astropy/config/paths.py | 745 | except Exception: | CODE |
| LOW | astropy/config/paths.py | 754 | except Exception: | CODE |
| LOW | astropy/config/tests/test_configs.py | 838 | except Exception: | CODE |
| LOW | astropy/wcs/wcs.py | 1682 | except Exception: | STRING |
| LOW | astropy/wcs/wcs.py | 1697 | except Exception: | STRING |
| LOW | astropy/wcs/wcsapi/fitswcs.py | 555 | except Exception: | CODE |
| LOW | astropy/wcs/wcsapi/fitswcs.py | 566 | except Exception: | CODE |
| LOW | astropy/io/misc/ecsv.py | 427 | except Exception: | CODE |
| LOW | astropy/io/misc/ecsv.py | 887 | except Exception as exc: | CODE |
| LOW | astropy/io/ascii/ipac.py | 110 | except Exception: | CODE |
| LOW | astropy/io/ascii/ipac.py | 113 | except Exception: | CODE |
| LOW⚡ | astropy/io/ascii/ipac.py | 302 | except Exception: | CODE |
| LOW | astropy/io/ascii/ecsv.py | 410 | except Exception as exc: | CODE |
| LOW | astropy/io/ascii/ui.py | 132 | except Exception: | STRING |
| LOW | astropy/io/ascii/ui.py | 292 | except Exception: | CODE |
| LOW | astropy/io/ascii/ui.py | 413 | except Exception: | CODE |
| LOW | astropy/io/fits/convenience.py | 923 | except Exception: | CODE |
| LOW | astropy/io/fits/_logical_helpers.py | 31 | except Exception: | CODE |
| LOW | astropy/io/fits/diff.py | 288 | except Exception as exc: | CODE |
| LOW | astropy/io/fits/diff.py | 297 | except Exception as exc: | CODE |
| LOW | astropy/io/fits/fitstime.py | 462 | except Exception as err: | CODE |
| LOW | astropy/io/fits/column.py | 737 | except Exception: | CODE |
| LOW | astropy/io/fits/column.py | 1660 | except Exception: | CODE |
| LOW | astropy/io/fits/column.py | 2154 | except Exception: | CODE |
| LOW | astropy/io/fits/column.py | 2386 | except Exception: | CODE |
| 167 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pyinstaller/run_astropy_tests.py | 23 | # NOTE: we can't simply use | COMMENT |
| LOW | astropy/visualization/time.py | 53 | # can just use this. | COMMENT |
| LOW | astropy/visualization/wcsaxes/transforms.py | 137 | # out the NaN values would have a performance hit, so instead we just pass | COMMENT |
| LOW | astropy/coordinates/matching.py | 389 | # just use the stored KD-Tree | COMMENT |
| LOW | astropy/coordinates/spectral_quantity.py | 229 | # If equivalencies is explicitly set to None, we should just use the | COMMENT |
| LOW | astropy/coordinates/sky_coordinate_parsers.py | 513 | # (ok since we know it is exactly rectangular). (Note: can't just use zip(*values) | STRING |
| LOW | astropy/coordinates/tests/test_spectral_quantity.py | 166 | # while some should just return plain Quantity | COMMENT |
| LOW | astropy/coordinates/tests/test_spectral_quantity.py | 231 | # while some should just return plain Quantity | COMMENT |
| LOW | astropy/coordinates/tests/test_spectral_quantity.py | 244 | # while some should just return plain Quantity | COMMENT |
| LOW | astropy/coordinates/tests/test_spectral_quantity.py | 271 | # while some should just return plain Quantity | COMMENT |
| LOW | astropy/coordinates/tests/test_regression.py | 308 | # Tolerance here just set to how well the coordinates match, which is much | COMMENT |
| LOW | astropy/coordinates/representation/base.py | 705 | # further definitions with the same name, just add qualname | COMMENT |
| LOW | …opy/coordinates/builtin_frames/icrs_cirs_transforms.py | 82 | # if no distance, just use the coordinate direction to yield the | COMMENT |
| LOW | …opy/coordinates/builtin_frames/icrs_cirs_transforms.py | 167 | # if no distance, just use the coordinate direction to yield the | COMMENT |
| LOW | …opy/coordinates/builtin_frames/icrs_cirs_transforms.py | 217 | # if no distance, just use the coordinate direction to yield the | COMMENT |
| LOW | …coordinates/builtin_frames/cirs_observed_transforms.py | 61 | # since we've transformed to CIRS at the observatory location, just use CIRS distance | COMMENT |
| LOW | …tes/builtin_frames/intermediate_rotation_transforms.py | 38 | # Here, we just set that to an I-matrix, because we're already | COMMENT |
| LOW | …tes/builtin_frames/intermediate_rotation_transforms.py | 59 | # c2tcio expects a GCRS->CIRS matrix, but we just set that to an I-matrix | COMMENT |
| LOW | …tes/builtin_frames/intermediate_rotation_transforms.py | 85 | # c2tcio expects a GCRS->CIRS matrix, but we just set that to an I-matrix | COMMENT |
| LOW | astropy/wcs/wcs.py | 2067 | # simply return initial approximation: | STRING |
| LOW⚡ | astropy/wcs/wcsapi/fitswcs.py | 398 | # WCS that matter here (we can't just use the WCS object as a hash since | COMMENT |
| MEDIUM | astropy/wcs/src/wcslib_wrap.c | 2424 | // might be tricky and not robust to future WCSLIB changes. Instead, | COMMENT |
| LOW | astropy/io/misc/pyarrow/csv.py | 305 | # No nulls, just return an ndarray view of the pyarray | COMMENT |
| MEDIUM | astropy/io/ascii/sextractor.py | 37 | # Updated along with issue #4603, for more robust parsing of unit | COMMENT |
| LOW | astropy/io/ascii/fixedwidth.py | 204 | # If column positions are already specified then just use those. | COMMENT |
| LOW | astropy/io/fits/header.py | 1675 | # This used to just set key = (key, 0) and then go on to act as if the | COMMENT |
| LOW | astropy/io/fits/util.py | 585 | # It suffices to just pass the underlying buffer directly to the | COMMENT |
| LOW | astropy/io/fits/card.py | 1253 | # Already a float so just pass through | COMMENT |
| LOW | astropy/io/fits/fitsrec.py | 389 | # The input column had an empty array, so just use the fill | COMMENT |
| LOW | astropy/io/fits/column.py | 998 | tmp = Column(format="I") # just use a throw-away format | CODE |
| LOW | astropy/io/fits/hdu/table.py | 179 | # definitions come from, so just return an empty ColDefs | COMMENT |
| LOW | astropy/io/fits/hdu/table.py | 420 | # Columns should now just return a reference to the data._coldefs | COMMENT |
| LOW | astropy/io/fits/hdu/compressed/compressed.py | 505 | # data, we can just use this | COMMENT |
| LOW | astropy/io/fits/hdu/compressed/_tiled_compression.py | 677 | # For now, we just use the default ZBLANK value and assume | COMMENT |
| LOW | astropy/io/fits/hdu/compressed/_quantization.py | 68 | # For NO_DITHER we should just use the scale and zero directly | COMMENT |
| LOW | astropy/io/fits/tests/test_image.py | 837 | # Let's just add a value to the data that should be converted to NaN | COMMENT |
| LOW | astropy/utils/shapes.py | 371 | # For np.shape, etc., just return the attribute. | COMMENT |
| LOW | astropy/utils/shapes.py | 374 | # Fall-back, just pass the arguments on since perhaps the function | COMMENT |
| LOW | astropy/utils/data_info.py | 604 | # be used here, since on access, one should not just return the | COMMENT |
| LOW | astropy/utils/data.py | 1077 | # not called from inside an astropy package. So just pass name | COMMENT |
| LOW | astropy/utils/data.py | 1832 | # just use the cache, with update_cache if appropriate. | COMMENT |
| LOW | astropy/utils/decorators.py | 862 | # The base property.__get__ will just return self here; | COMMENT |
| LOW | astropy/utils/masked/core.py | 185 | # Otherwise we're a subclass and should just pass information on. | COMMENT |
| LOW | astropy/utils/masked/core.py | 1051 | # By default, just pass it through for now. | COMMENT |
| LOW | astropy/utils/metadata/core.py | 92 | # class attribute access. Often, descriptors just return `self`, but if the | COMMENT |
| LOW | astropy/modeling/core.py | 1743 | # don't want to convert the parameter, just add the unit directly, | COMMENT |
| LOW | astropy/modeling/core.py | 1992 | # just add a None since there is no broadcasting of outputs and | COMMENT |
| LOW | astropy/modeling/_fitting_parallel.py | 202 | # If all data values are NaN, just set parameters to NaN and move on | COMMENT |
| MEDIUM | astropy/modeling/tests/test_quantities_fitting.py | 18 | # Fitting should be as intuitive as possible to the user. Essentially, models | COMMENT |
| MEDIUM | astropy/modeling/tests/test_quantities_parameters.py | 295 | # Essentially here we are checking that parameters behave like Quantity | COMMENT |
| LOW | astropy/time/core.py | 964 | # could just use np.ma.is_masked(value). | COMMENT |
| LOW | astropy/units/quantity.py | 746 | # For given Quantity output, just set the unit. We know the unit | STRING |
| LOW | astropy/units/quantity.py | 1889 | # function is in none of the above, we simply call the numpy | COMMENT |
| LOW | astropy/units/tests/test_quantity_erfa_ufuncs.py | 485 | # Sadly does not just use the values from above. | COMMENT |
| LOW | astropy/units/function/core.py | 656 | # And really it should just return NotImplemented, since possibly | COMMENT |
| LOW | astropy/units/quantity_helper/helpers.py | 274 | # if first arg is not a quantity, just return plain array | COMMENT |
| LOW | astropy/table/serialize.py | 223 | # just add to new_cols and all we have to do is to link to the new name. | COMMENT |
| LOW | astropy/table/serialize.py | 314 | # If no metadata was created then just return the original table. | COMMENT |
| MEDIUM | astropy/table/table.py | 1408 | # sequence. This function is relatively intricate and tries to | COMMENT |
| LOW | astropy/table/table.py | 467 | # Subsequent access will just return None. | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/visualization/wcsaxes/_auto.py | 82 | # Check if option is consistent with any fixed tick positions - that | COMMENT |
| LOW | astropy/visualization/wcsaxes/core.py | 426 | # Check if the WCS object is an instance of `astropy.wcs.WCS` | COMMENT |
| LOW | astropy/visualization/wcsaxes/coordinate_range.py | 92 | # Check if range is smaller when normalizing to the range 0 to 360 | COMMENT |
| LOW | astropy/visualization/wcsaxes/coordinate_range.py | 104 | # Check if range is smaller when normalizing to the range -180 to 180 | COMMENT |
| LOW | astropy/coordinates/transformations/composite.py | 139 | # Check if there may be an origin shift | COMMENT |
| LOW | astropy/coordinates/angles/core.py | 376 | # Check if value is not nan to avoid ValueErrors when turning it into | COMMENT |
| LOW | astropy/wcs/wcs.py | 3058 | # Check if we can handle TPD distortion correctly | STRING |
| LOW | astropy/wcs/utils.py | 820 | # Check if classes match uniquely | STRING |
| LOW | astropy/io/misc/ecsv.py | 424 | # Check if the given dtype is a valid numpy dtype. | COMMENT |
| LOW | astropy/io/misc/ecsv.py | 607 | # Check if the subtype corresponds to a valid numpy dtype. This is required by | COMMENT |
| LOW | astropy/io/misc/hdf5.py | 138 | # Open the file for reading, and recursively call read_table_hdf5 with | COMMENT |
| LOW | astropy/io/misc/hdf5.py | 300 | # Open the file for appending or writing | COMMENT |
| LOW | astropy/io/misc/pyarrow/csv.py | 510 | # Set column_names to an empty list and autogenerate_column_names to True. | COMMENT |
| LOW | astropy/io/ascii/ui.py | 892 | # Set up to coerce `table` input into a readable file object by selecting | COMMENT |
| LOW | astropy/io/ascii/cds.py | 130 | i_col_def -= 1 # Set i_col_def to last description line | CODE |
| LOW | astropy/io/ascii/basic.py | 390 | # Check if dtype.kind is string or unicode. See help(np.core.numerictypes) | COMMENT |
| LOW | astropy/io/ascii/mrt.py | 269 | # Check if column is MaskedColumn | COMMENT |
| LOW | astropy/io/ascii/mesa.py | 230 | # Check if this is a history file and remove restarts if requested | COMMENT |
| LOW | astropy/io/ascii/tests/test_cds.py | 325 | # Check if the original table columns remains unmodified. | COMMENT |
| LOW | astropy/io/fits/connect.py | 303 | # Check if column is masked. Here, we make a guess based on the | COMMENT |
| LOW | astropy/io/fits/connect.py | 511 | # Check if output file already exists | COMMENT |
| LOW | astropy/io/fits/fitstime.py | 147 | # Check if geocentric global location is specified | COMMENT |
| LOW | astropy/io/fits/fitstime.py | 154 | # Check if geodetic global location is specified (since geocentric failed) | COMMENT |
| LOW | astropy/io/fits/fitstime.py | 271 | # Check if column-specific reference position TRPOSn is specified | COMMENT |
| LOW | astropy/io/fits/fitstime.py | 523 | # Check if the column is time coordinate (not spatial) | COMMENT |
| LOW | astropy/io/fits/hdu/streaming.py | 74 | # Check if the file already exists. If it does not, check to see | COMMENT |
| LOW | astropy/io/fits/hdu/hdulist.py | 1268 | # Close the file if necessary (issue #6168) | COMMENT |
| LOW | astropy/io/fits/hdu/hdulist.py | 1336 | # Close the file: see | COMMENT |
| LOW | astropy/io/fits/tests/test_hdulist.py | 1218 | # Read the file again and try popping from the beginning | COMMENT |
| LOW | astropy/io/fits/scripts/fitsdiff.py | 433 | # Close the file if used for the logging output, and remove handlers to | COMMENT |
| LOW | astropy/io/registry/base.py | 124 | # Check if this is a short name (e.g. 'rdb') which is deprecated in | COMMENT |
| LOW | astropy/io/votable/tree.py | 1199 | # Set config to ignore verification (prevent warnings and exceptions) on parse. | COMMENT |
| LOW | astropy/io/votable/connect.py | 165 | # Check if output file already exists | COMMENT |
| LOW | astropy/io/votable/converters.py | 312 | # Check if this is a bounded variable-length field | COMMENT |
| LOW | astropy/io/votable/converters.py | 431 | # Check if this is a bounded variable-length field | COMMENT |
| LOW | astropy/io/votable/converters.py | 1508 | # Check if we have stored the original arraysize with bounds | COMMENT |
| LOW | astropy/utils/data.py | 396 | # Check if the file object supports random access, and if not, | COMMENT |
| LOW | astropy/utils/decorators.py | 578 | # Check if the newkeyword was given as well. | COMMENT |
| LOW | astropy/utils/decorators.py | 856 | # Check if another thread initialised before we locked. | COMMENT |
| LOW | astropy/utils/decorators.py | 946 | # Check if another thread beat us to it. | COMMENT |
| LOW | astropy/utils/tests/test_decorators.py | 887 | # Check if the decorator works on methods too, to spice it up we try double | COMMENT |
| LOW | astropy/utils/tests/test_decorators.py | 902 | # Check if the decorator works on classes too | COMMENT |
| LOW | astropy/utils/iers/iers.py | 485 | # Set status to source, using the routine passed in. | COMMENT |
| LOW | astropy/nddata/ccddata.py | 207 | # Check if a unit is set. This can be temporarily disabled by the | COMMENT |
| LOW | astropy/nddata/ccddata.py | 697 | # Check if there's a simple flags extension or multiple flag | COMMENT |
| LOW | astropy/nddata/nduncertainty.py | 125 | # Check if two units are given and take the explicit one then. | COMMENT |
| LOW | astropy/nddata/nduncertainty.py | 134 | # Check if two units are given and take the explicit one then. | COMMENT |
| LOW | astropy/nddata/nduncertainty.py | 375 | # Check if the subclass supports correlation | COMMENT |
| LOW | astropy/nddata/nddata.py | 148 | # Check if data is any type from which to collect some implicitly | COMMENT |
| LOW | astropy/nddata/utils.py | 382 | # Check if large array is not smaller | COMMENT |
| LOW | astropy/nddata/decorators.py | 195 | # Check if the property was explicitly given and issue a | COMMENT |
| LOW | astropy/nddata/mixins/ndarithmetic.py | 252 | # Check if the key value is populated, error if not None | STRING |
| LOW | astropy/modeling/core.py | 3111 | # Assign directly to the private attribute (instead of using the setter) | COMMENT |
| LOW | astropy/modeling/physical_models.py | 179 | # Check if input values are physically possible | COMMENT |
| LOW | astropy/time/tests/test_basic.py | 74 | # Set scale to TAI | COMMENT |
| LOW | astropy/time/tests/test_mask.py | 141 | # Assign value to unmask, though the instance stays masked. | COMMENT |
| LOW | astropy/units/quantity_helper/converters.py | 71 | # Check if it was loaded while we waited for the lock | COMMENT |
| LOW | astropy/table/_dataframes.py | 118 | # Check if pandas-like or pyarrow-like | COMMENT |
| LOW | astropy/table/_dataframes.py | 142 | # Check if pandas-like, PANDAS_LIKE is reserved for pandas itself | COMMENT |
| LOW | astropy/table/table.py | 3959 | np.broadcast(self[name], other[name]) # Check if broadcast-able | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/visualization/mpl_normalize.py | 467 | CODE | |
| LOW | astropy/visualization/mpl_normalize.py | 323 | CODE | |
| LOW | astropy/visualization/scripts/fits2bitmap.py | 12 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 84 | CODE | |
| LOW | astropy/visualization/wcsaxes/coordinate_helpers.py | 538 | CODE | |
| LOW | astropy/visualization/wcsaxes/formatter_locator.py | 172 | CODE | |
| LOW | astropy/visualization/wcsaxes/ticklabels.py | 71 | CODE | |
| LOW | astropy/visualization/wcsaxes/helpers.py | 29 | CODE | |
| LOW | …/timeseries/periodograms/lombscargle_multiband/core.py | 86 | CODE | |
| LOW | …s/lombscargle_multiband/implementations/mbfast_impl.py | 8 | CODE | |
| LOW | …odograms/lombscargle_multiband/implementations/main.py | 19 | CODE | |
| LOW | …eries/periodograms/lombscargle/implementations/main.py | 109 | CODE | |
| LOW | astropy/coordinates/distances.py | 103 | CODE | |
| LOW | astropy/coordinates/spectral_coordinate.py | 299 | CODE | |
| LOW | astropy/coordinates/angles/core.py | 235 | CODE | |
| LOW | astropy/wcs/wcs.py | 509 | CODE | |
| LOW | astropy/io/misc/pyarrow/csv.py | 26 | CODE | |
| LOW | astropy/io/fits/connect.py | 120 | CODE | |
| LOW | astropy/io/fits/file.py | 149 | CODE | |
| LOW | astropy/io/fits/diff.py | 208 | CODE | |
| LOW | astropy/io/fits/diff.py | 478 | CODE | |
| LOW | astropy/io/fits/column.py | 561 | CODE | |
| LOW | astropy/io/fits/column.py | 1031 | CODE | |
| LOW | astropy/io/fits/hdu/groups.py | 92 | CODE | |
| LOW | astropy/io/fits/hdu/hdulist.py | 43 | CODE | |
| LOW | astropy/io/fits/hdu/hdulist.py | 1170 | CODE | |
| LOW | astropy/io/fits/hdu/compressed/header.py | 240 | CODE | |
| LOW | astropy/io/fits/hdu/compressed/compressed.py | 52 | CODE | |
| LOW | astropy/io/votable/tree.py | 663 | CODE | |
| LOW | astropy/io/votable/tree.py | 785 | CODE | |
| LOW | astropy/io/votable/tree.py | 1334 | CODE | |
| LOW | astropy/io/votable/tree.py | 1796 | CODE | |
| LOW | astropy/io/votable/tree.py | 1877 | CODE | |
| LOW | astropy/io/votable/tree.py | 2341 | CODE | |
| LOW | astropy/io/votable/tree.py | 2502 | CODE | |
| LOW | astropy/io/votable/table.py | 31 | CODE | |
| LOW | astropy/utils/misc.py | 517 | CODE | |
| LOW | astropy/utils/data_info.py | 728 | CODE | |
| LOW | astropy/utils/data.py | 206 | CODE | |
| LOW | astropy/utils/data.py | 1347 | CODE | |
| LOW | astropy/utils/data.py | 1461 | CODE | |
| LOW | astropy/utils/masked/function_helpers.py | 1209 | CODE | |
| LOW | astropy/utils/masked/function_helpers.py | 1243 | CODE | |
| LOW | astropy/utils/metadata/merge.py | 226 | CODE | |
| LOW | astropy/utils/metadata/merge.py | 231 | CODE | |
| LOW | astropy/modeling/spline.py | 35 | CODE | |
| LOW | astropy/modeling/spline.py | 305 | CODE | |
| LOW | astropy/modeling/_fitting_parallel.py | 121 | CODE | |
| LOW | astropy/modeling/_fitting_parallel.py | 346 | CODE | |
| LOW | astropy/modeling/separable.py | 166 | CODE | |
| LOW | astropy/modeling/parameters.py | 194 | CODE | |
| LOW | astropy/modeling/parameters.py | 613 | CODE | |
| LOW | astropy/modeling/fitting.py | 355 | CODE | |
| LOW | astropy/modeling/fitting.py | 1341 | CODE | |
| LOW | astropy/modeling/fitting.py | 1700 | CODE | |
| LOW | astropy/modeling/polynomial.py | 238 | CODE | |
| LOW | astropy/modeling/polynomial.py | 746 | CODE | |
| LOW | astropy/modeling/polynomial.py | 1137 | CODE | |
| LOW | astropy/modeling/polynomial.py | 1402 | CODE | |
| LOW | astropy/modeling/polynomial.py | 1557 | CODE | |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | astropy/io/ascii/tests/test_fixedwidth.py | 105 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/ascii/tests/test_fixedwidth.py | 120 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/ascii/tests/test_fixedwidth.py | 136 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/ascii/tests/test_fixedwidth.py | 158 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/ascii/tests/test_fixedwidth.py | 172 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/ascii/tests/test_fixedwidth.py | 189 | assert dat[0][1] == "555-1234" | STRING |
| LOW | astropy/io/votable/tests/test_table.py | 851 | ID = "dummy_id" | CODE |
| LOW | astropy/io/votable/tests/test_table.py | 863 | assert "dummy_id" in err_msg | CODE |
| LOW | astropy/io/votable/tests/test_table.py | 873 | ID = "dummy_id" | CODE |
| LOW | astropy/io/votable/tests/test_table.py | 885 | assert "dummy_id" in err_msg | CODE |
| LOW⚡ | astropy/modeling/tests/test_quantities_fitting.py | 295 | fake_data = comb(e) | CODE |
| LOW⚡ | astropy/modeling/tests/test_quantities_fitting.py | 297 | res = fit(comb, e, fake_data) | CODE |
| LOW⚡ | astropy/modeling/tests/test_quantities_fitting.py | 303 | fake_data = comb(e) | CODE |
| LOW⚡ | astropy/modeling/tests/test_quantities_fitting.py | 305 | res = fit(comb, e, fake_data) | CODE |
| LOW⚡ | astropy/units/quantity_helper/function_helpers.py | 1312 | fake_name = "_" * len(cls_name) | CODE |
| LOW⚡ | astropy/units/quantity_helper/function_helpers.py | 1313 | fake_cls = type(fake_name, (np.ndarray,), {}) | CODE |
| LOW⚡ | astropy/units/quantity_helper/function_helpers.py | 1315 | fake_name, cls_name | CODE |
| LOW⚡ | astropy/convolution/tests/test_convolve_models.py | 91 | fake_data = fake_model(x) + np.random.normal(size=len(x)) | CODE |
| LOW⚡ | astropy/convolution/tests/test_convolve_models.py | 95 | fitted_model = fitter(init_model, x, fake_data) | CODE |
| LOW⚡ | astropy/convolution/tests/test_convolve_models.py | 97 | me = np.mean(fitted_model(x) - fake_data) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tes/builtin_frames/intermediate_rotation_transforms.py | 233 | # TODO: implement GCRS<->CIRS if there's call for it. The thing that's awkward | COMMENT |
| LOW | astropy/wcs/wcsapi/fitswcs.py | 780 | # TODO: implement support for more locations when Time supports it | COMMENT |
| LOW | astropy/io/fits/connect.py | 381 | # TODO: implement masking | COMMENT |
| LOW | astropy/io/fits/column.py | 1083 | # TODO: Add validation for these keywords, obviously | COMMENT |
| LOW | astropy/utils/masked/core.py | 1267 | # TODO: implement this at the ufunc level. | COMMENT |
| LOW | astropy/units/tests/test_logarithmic.py | 1045 | # TODO: add tests for all supported functions! | COMMENT |
| LOW | astropy/stats/bayesian_blocks.py | 60 | # TODO: implement other fitness functions from appendix C of Scargle 2013 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/visualization/scripts/tests/test_fits2bitmap.py | 21 | def test_function(self, tmp_path): | CODE |
| LOW | astropy/modeling/tests/test_parameters.py | 48 | def do_something(self, v): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/io/ascii/core.py | 881 | # Step 1: Set the default list of columns which are affected by | COMMENT |
| LOW | astropy/extern/ply/yacc.py | 2516 | # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) items | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/io/ascii/core.py | 881 | # Step 1: Set the default list of columns which are affected by | COMMENT |
| LOW | astropy/extern/ply/yacc.py | 2516 | # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) items | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | astropy/extern/ply/yacc.py | 3084 | # Sort all of the actions by line number; make sure to stringify | STRING |