Repository Analysis

astropy/astropy

Astronomy and astrophysics core library

13.7 Low AI signal View on GitHub

Analysis Overview

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).

13.7
Adjusted Score
13.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.2K
Stars
Python
Language
546.8K
Lines of Code
1.2K
Files
6.2K
Pattern Hits
2026-07-14
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 0HIGH 176MEDIUM 576LOW 5465

Directory Score Breakdown

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.

Pattern Findings

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.

Hyper-Verbose Identifiers3275 hits · 2997 pts
SeverityFileLineSnippetContext
LOWdocs/conftest.py27def _session_level_config_dir(tmp_path_factory):CODE
LOWdocs/nddata/examples/cutout2d_tofits.py9def download_image_save_cutout(url, position, size):CODE
LOWastropy/conftest.py57def ignore_config_paths_global_state(monkeypatch, tmp_path_factory):CODE
LOWastropy/conftest.py114def _session_level_config_dir(tmp_path_factory):CODE
LOWastropy/logger.py309 def exception_logging_enabled(self):CODE
LOWastropy/logger.py364 def disable_exception_logging(self):CODE
LOWastropy/visualization/tests/test_stretch.py157def test_histeqstretch_invalid():CODE
LOWastropy/visualization/tests/test_basic_rgb.py328def test_make_linear_rgb_file():CODE
LOWastropy/visualization/tests/test_basic_rgb.py341def test_different_shapes_asserts():CODE
LOWastropy/visualization/tests/test_basic_rgb.py349def test_incorrect_interval_length():CODE
LOWastropy/visualization/tests/test_basic_rgb.py363def test_invalid_output_dtype(out_format):CODE
LOWastropy/visualization/tests/test_norm.py28def test_normalize_error_message():CODE
LOWastropy/visualization/tests/test_interval.py47 def test_manual_defaults_with_nan(self):CODE
LOWastropy/visualization/tests/test_interval.py67 def test_asymmetric_percentile(self):CODE
LOWastropy/visualization/tests/test_interval.py73 def test_asymmetric_percentile_nsamples(self):CODE
LOWastropy/visualization/tests/test_interval.py80 def test_symmetric_interval_manual(self):CODE
LOWastropy/visualization/tests/test_interval.py91 def test_symmetric_interval_auto(self):CODE
LOWastropy/visualization/tests/test_lupton_rgb.py273 def test_make_rgb_incorrect_min_input(self):CODE
LOWastropy/visualization/tests/test_lupton_rgb.py284 def test_make_rgb_saturated_fix(self, tmp_path):CODE
LOWastropy/visualization/tests/test_lupton_rgb.py343 def test_different_shapes_asserts(self):CODE
LOWastropy/visualization/tests/test_lupton_rgb.py349 def test_incorrect_input_compute_intensity_asserts(self):CODE
LOWastropy/visualization/tests/test_histogram.py67def test_histogram_pathological_input():CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py837 def set_axislabel_visibility_rule(self, rule):CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py889 def get_axislabel_visibility_rule(self, rule):CODE
LOWastropy/visualization/wcsaxes/_auto.py8def auto_assign_coord_positions(ax):CODE
LOWastropy/visualization/wcsaxes/core.py490 def _update_tick_and_label_positions(self, keep_coord_range=False):CODE
LOWastropy/visualization/wcsaxes/core.py750 def _get_transform_no_transdata(self, frame):CODE
LOWastropy/visualization/wcsaxes/ticklabels.py18def _find_start_of_last_number(label):CODE
LOWastropy/visualization/wcsaxes/utils.py117def transform_contour_set_inplace(cset, transform):CODE
LOWastropy/visualization/wcsaxes/wcsapi.py62def custom_ucd_coord_meta_mapping(mapping, *, overwrite=False):CODE
LOWastropy/visualization/wcsaxes/wcsapi.py125def transform_coord_meta_from_wcs(wcs, frame_class, slices=None):CODE
LOWastropy/visualization/wcsaxes/wcsapi.py322def wcsapi_to_celestial_frame(wcs):CODE
LOWastropy/visualization/wcsaxes/tests/test_frame.py74 def test_update_clip_path_rectangular(self, tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_frame.py97 def test_update_clip_path_nonrectangular(self, tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_frame.py119 def test_update_clip_path_change_wcs(self, tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_frame.py146 def test_copy_frame_properties_change_wcs(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py46def test_format_coord_regression(ignore_matplotlibrc, tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py111def test_invalid_frame_overlay(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py122def test_plot_coord_transform(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py137def test_scatter_coord_transform(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py152def test_set_label_properties(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py253def test_grid_type_contours_transform(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py301def test_grid_contour_large_spacing(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py362def test_invalid_slices_errors(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py476def test_simplify_labels_usetex(ignore_matplotlibrc, tmp_path):STRING
LOWastropy/visualization/wcsaxes/tests/test_misc.py518def test_simplify_labels_minus_sign(CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py547def test_set_labels_with_coords(ignore_matplotlibrc, frame_class):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py599def test_wcs_type_transform_regression():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py610def test_multiple_draws_grid_contours(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py618def test_get_coord_range_nan_regression():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py691def test_get_axislabel_default():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py793def test_get_transform_unit_mismatch():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py829def test_get_coords_overlay_elliptical_frame(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py196 def test_overlay_features_image(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py234 def test_curvilinear_grid_patches_image(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py313 def test_cube_slice_image_lonlat(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py637 def test_tick_angles_non_square_axes(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py709 def test_axislabels_regression(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py726 def test_noncelestial_angular(self):CODE
LOWastropy/visualization/wcsaxes/tests/test_images.py908 def test_beam_shape_from_args(self, tmp_path):CODE
3215 more matches not shown…
Decorative Section Separators412 hits · 1070 pts
SeverityFileLineSnippetContext
MEDIUM…/periodograms/lombscargle/implementations/fast_impl.py108 # ----------------------------------------------------------------------COMMENT
MEDIUM…/periodograms/lombscargle/implementations/fast_impl.py131 # ----------------------------------------------------------------------COMMENT
MEDIUMastropy/coordinates/tests/test_transformations.py250# ------------------------------------------------------------------------------COMMENT
MEDIUMastropy/coordinates/builtin_frames/lsr.py95# ------------------------------------------------------------------------------STRING
MEDIUMastropy/coordinates/builtin_frames/lsr.py182# ------------------------------------------------------------------------------STRING
MEDIUMastropy/coordinates/builtin_frames/lsr.py233# ------------------------------------------------------------------------------STRING
MEDIUMastropy/coordinates/builtin_frames/lsr.py283# ------------------------------------------------------------------------------STRING
MEDIUMastropy/io/ascii/basic.py427 # -----------------STRING
MEDIUMastropy/io/registry/compat.py57# =============================================================================COMMENT
MEDIUMastropy/io/registry/interface.py14# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/interface.py137# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/core.py37# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/core.py85 # =========================================================================COMMENT
MEDIUMastropy/io/registry/core.py251# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/core.py266 # =========================================================================COMMENT
MEDIUMastropy/io/registry/core.py398# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/base.py18# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/base.py210 # =========================================================================COMMENT
MEDIUMastropy/io/registry/base.py327 # =========================================================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py200 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py511 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py530 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py903 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py923 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py149 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py234 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py362 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py391 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py470 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py550 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py694 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py767 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py796 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py873 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py943 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py1047 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py1124 # ===========================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py1175 # -----------------------COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py1209# =============================================================================COMMENT
MEDIUMastropy/io/registry/tests/test_registries.py1230# =============================================================================COMMENT
MEDIUMastropy/io/votable/tree.py1383 # ----------------------------------------COMMENT
MEDIUMastropy/utils/metadata/merge.py137# ============================================================================COMMENT
MEDIUMastropy/utils/metadata/merge.py207# =============================================================================COMMENT
MEDIUMastropy/modeling/statistic.py65# -------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py50# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/time/tests/test_parse_times_extension.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMastropy/units/physical.py547# ------------------------------------------------------------------------------COMMENT
MEDIUMastropy/cosmology/units.py30# ===================================================================COMMENT
MEDIUMastropy/cosmology/units.py36# =============================================================================COMMENT
MEDIUMastropy/cosmology/_src/units_equivalencies.py338 # -----------COMMENT
MEDIUMastropy/cosmology/_src/units_equivalencies.py346# ===================================================================COMMENT
MEDIUMastropy/cosmology/_src/core.py172 # ---------------------------------------------------------------COMMENT
MEDIUMastropy/cosmology/_src/core.py177 # -------------------COMMENT
MEDIUMastropy/cosmology/_src/core.py189 # -------------------COMMENT
MEDIUMastropy/cosmology/_src/core.py205 # ---------------------------------------------------------------COMMENT
MEDIUMastropy/cosmology/_src/core.py288 # ---------------------------------------------------------------COMMENT
352 more matches not shown…
Unused Imports642 hits · 564 pts
SeverityFileLineSnippetContext
LOW.pyinstaller/run_astropy_tests.py5CODE
LOW.pyinstaller/run_astropy_tests.py9CODE
LOWdocs/conf.py73CODE
LOWastropy/__init__.py13CODE
LOWastropy/__init__.py65CODE
LOWastropy/__init__.py197CODE
LOWastropy/__init__.py203CODE
LOWastropy/__init__.py203CODE
LOWastropy/__init__.py203CODE
LOWastropy/logger.py16CODE
LOWastropy/logger.py16CODE
LOWastropy/logger.py16CODE
LOWastropy/visualization/__init__.py3CODE
LOWastropy/visualization/__init__.py4CODE
LOWastropy/visualization/__init__.py5CODE
LOWastropy/visualization/__init__.py6CODE
LOWastropy/visualization/__init__.py6CODE
LOWastropy/visualization/__init__.py6CODE
LOWastropy/visualization/__init__.py7CODE
LOWastropy/visualization/__init__.py8CODE
LOWastropy/visualization/__init__.py9CODE
LOWastropy/visualization/__init__.py10CODE
LOWastropy/visualization/__init__.py11CODE
LOWastropy/visualization/__init__.py12CODE
LOWastropy/visualization/wcsaxes/__init__.py16CODE
LOWastropy/visualization/wcsaxes/__init__.py17CODE
LOWastropy/visualization/wcsaxes/__init__.py18CODE
LOWastropy/visualization/wcsaxes/__init__.py19CODE
LOWastropy/visualization/wcsaxes/__init__.py20CODE
LOWastropy/visualization/wcsaxes/__init__.py21CODE
LOWastropy/visualization/wcsaxes/wcsapi.py2CODE
LOWastropy/timeseries/__init__.py7CODE
LOWastropy/timeseries/__init__.py8CODE
LOWastropy/timeseries/__init__.py9CODE
LOWastropy/timeseries/__init__.py10CODE
LOWastropy/timeseries/__init__.py11CODE
LOWastropy/timeseries/__init__.py12CODE
LOWastropy/timeseries/io/__init__.py3CODE
LOWastropy/timeseries/periodograms/__init__.py1CODE
LOWastropy/timeseries/periodograms/__init__.py2CODE
LOWastropy/timeseries/periodograms/__init__.py3CODE
LOWastropy/timeseries/periodograms/__init__.py4CODE
LOWastropy/timeseries/periodograms/bls/__init__.py15CODE
LOWastropy/timeseries/periodograms/bls/__init__.py15CODE
LOW…eseries/periodograms/lombscargle_multiband/__init__.py3CODE
LOW…rams/lombscargle_multiband/implementations/__init__.py3CODE
LOW…rams/lombscargle_multiband/implementations/__init__.py3CODE
LOW…rams/lombscargle_multiband/implementations/__init__.py4CODE
LOW…rams/lombscargle_multiband/implementations/__init__.py5CODE
LOWastropy/timeseries/periodograms/lombscargle/__init__.py9CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py3CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py4CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py5CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py6CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py6CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py7CODE
LOW…s/periodograms/lombscargle/implementations/__init__.py8CODE
LOWastropy/coordinates/baseframe.py54CODE
LOWastropy/coordinates/__init__.py9CODE
LOWastropy/coordinates/__init__.py10CODE
582 more matches not shown…
Cross-File Repetition112 hits · 560 pts
SeverityFileLineSnippetContext
HIGHastropy/coordinates/sky_coordinate.py0create a new representation or differential with ``method`` applied to the component data. in typical usage, the method STRING
HIGHastropy/coordinates/baseframe.py0create a new representation or differential with ``method`` applied to the component data. in typical usage, the method STRING
HIGHastropy/coordinates/representation/base.py0create a new representation or differential with ``method`` applied to the component data. in typical usage, the method STRING
HIGHastropy/coordinates/baseframe.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/coordinates/earth.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/coordinates/representation/base.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/time/core.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/units/quantity.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/table/column.py0container for meta information like name, description, format. this is required when the object is used as a mixin columSTRING
HIGHastropy/coordinates/polarization.py0return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for cSTRING
HIGHastropy/coordinates/earth.py0return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for cSTRING
HIGHastropy/units/quantity.py0return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for cSTRING
HIGHastropy/table/column.py0return a new column instance which is consistent with the input ``cols`` and has ``length`` rows. this is intended for cSTRING
HIGHastropy/coordinates/builtin_frames/equatorial.py0other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for deSTRING
HIGHastropy/coordinates/builtin_frames/itrs.py0other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for deSTRING
HIGHastropy/coordinates/builtin_frames/cirs.py0other parameters ---------------- obstime : `~astropy.time.time` the time at which the observation is taken. used for deSTRING
HIGHastropy/constants/astropyconst80.py0astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants deSTRING
HIGHastropy/constants/astropyconst20.py0astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants deSTRING
HIGHastropy/constants/astropyconst40.py0astronomical and physics constants for astropy v4.0. see :mod:`astropy.constants` for a complete listing of constants deSTRING
HIGHastropy/constants/iau2012.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/si.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/codata2014.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/codata2010.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/codata2022.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/codata2018.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/iau2015.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/constants/cgs.py0astronomical and physics constants in cgs units. see :mod:`astropy.constants` for a complete listing of constants defineSTRING
HIGHastropy/io/misc/parquet.py0this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead aSTRING
HIGHastropy/io/misc/hdf5.py0this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead aSTRING
HIGHastropy/io/ascii/qdp.py0this package contains functions for reading and writing qdp tables that are not meant to be used directly, but instead aSTRING
HIGHastropy/io/misc/tests/test_parquet.py0test writing as qtable and reading as table. ensure correct classes come out.STRING
HIGHastropy/io/misc/tests/test_hdf5.py0test writing as qtable and reading as table. ensure correct classes come out.STRING
HIGHastropy/io/ascii/tests/test_ecsv.py0test writing as qtable and reading as table. ensure correct classes come out.STRING
HIGHastropy/io/fits/tests/test_connect.py0test writing as qtable and reading as table. ensure correct classes come out.STRING
HIGHastropy/io/misc/tests/test_parquet.py0test write/read all cols at once and validate intermediate column namesSTRING
HIGHastropy/io/misc/tests/test_hdf5.py0test write/read all cols at once and validate intermediate column namesSTRING
HIGHastropy/io/ascii/tests/test_ecsv.py0test write/read all cols at once and validate intermediate column namesSTRING
HIGHastropy/io/fits/tests/test_connect.py0test write/read all cols at once and validate intermediate column namesSTRING
HIGHastropy/io/misc/tests/test_parquet.py0test write/read one col at a time and do detailed validationSTRING
HIGHastropy/io/misc/tests/test_hdf5.py0test write/read one col at a time and do detailed validationSTRING
HIGHastropy/io/fits/tests/test_connect.py0test write/read one col at a time and do detailed validationSTRING
HIGHastropy/io/misc/tests/test_hdf5.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/io/ascii/tests/test_write.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/io/votable/tests/test_table.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/table/tests/test_table.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/io/ascii/tests/test_read.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/nddata/tests/test_ccddata.py0pytest fixture to run a test case with tilde-prefixed paths. in the tilde-path case, environment variables will be tempoSTRING
HIGHastropy/io/ascii/ipac.py0initialize the header column objects from the table ``lines``. based on the previously set header attributes find or creSTRING
HIGHastropy/io/ascii/core.py0initialize the header column objects from the table ``lines``. based on the previously set header attributes find or creSTRING
HIGHastropy/io/ascii/fixedwidth.py0initialize the header column objects from the table ``lines``. based on the previously set header attributes find or creSTRING
HIGHastropy/io/ascii/fastbasic.py0read input data (file-like object, filename, list of strings, or single string) into a table and return the result.STRING
HIGHastropy/io/ascii/basic.py0read input data (file-like object, filename, list of strings, or single string) into a table and return the result.STRING
HIGHastropy/io/ascii/sextractor.py0read input data (file-like object, filename, list of strings, or single string) into a table and return the result.STRING
HIGHastropy/io/fits/hdu/groups.py0calculate the value for the ``datasum`` card in the hdu.STRING
HIGHastropy/io/fits/hdu/table.py0calculate the value for the ``datasum`` card in the hdu.STRING
HIGHastropy/io/fits/hdu/image.py0calculate the value for the ``datasum`` card in the hdu.STRING
HIGHastropy/io/fits/hdu/base.py0calculate the value for the ``datasum`` card in the hdu.STRING
HIGHastropy/units/misc.py0this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astroSTRING
HIGHastropy/units/si.py0this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astroSTRING
HIGHastropy/units/cgs.py0this package defines the astrophysics-specific units. they are also available in (and should be used through) the `astroSTRING
52 more matches not shown…
Deep Nesting551 hits · 478 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py256CODE
LOWastropy/logger.py129CODE
LOWastropy/logger.py559CODE
LOWastropy/visualization/time.py19CODE
LOWastropy/visualization/time.py60CODE
LOWastropy/visualization/time.py155CODE
LOWastropy/visualization/mpl_normalize.py323CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py966CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py1123CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py259CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py330CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py350CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py404CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py596CODE
LOWastropy/visualization/wcsaxes/_auto.py8CODE
LOWastropy/visualization/wcsaxes/core.py284CODE
LOWastropy/visualization/wcsaxes/core.py750CODE
LOWastropy/visualization/wcsaxes/core.py855CODE
LOWastropy/visualization/wcsaxes/axislabels.py61CODE
LOWastropy/visualization/wcsaxes/coordinate_range.py23CODE
LOWastropy/visualization/wcsaxes/ticklabels.py148CODE
LOWastropy/visualization/wcsaxes/ticklabels.py208CODE
LOWastropy/visualization/wcsaxes/coordinates_map.py46CODE
LOWastropy/visualization/wcsaxes/wcsapi.py125CODE
LOWastropy/visualization/wcsaxes/tests/test_wcsapi.py96CODE
LOWastropy/timeseries/downsample.py84CODE
LOWastropy/timeseries/sampled.py155CODE
LOWastropy/timeseries/binned.py73CODE
LOWastropy/timeseries/binned.py254CODE
LOWastropy/timeseries/periodograms/bls/tests/test_bls.py371CODE
LOW…bscargle_multiband/tests/test_lombscargle_multiband.py596CODE
LOWastropy/timeseries/periodograms/lombscargle/utils.py39CODE
LOW…opy/timeseries/periodograms/lombscargle/_statistics.py50CODE
LOW…opy/timeseries/periodograms/lombscargle/_statistics.py99CODE
LOW…opy/timeseries/periodograms/lombscargle/_statistics.py149CODE
LOW…opy/timeseries/periodograms/lombscargle/_statistics.py237CODE
LOW…iodograms/lombscargle/implementations/fastchi2_impl.py8CODE
LOW…periodograms/lombscargle/implementations/scipy_impl.py6CODE
LOW…ries/periodograms/lombscargle/implementations/utils.py15CODE
LOW…eries/periodograms/lombscargle/implementations/main.py78CODE
LOW…/periodograms/lombscargle/implementations/chi2_impl.py6CODE
LOW…/periodograms/lombscargle/implementations/slow_impl.py4CODE
LOW…/periodograms/lombscargle/implementations/fast_impl.py6CODE
LOWastropy/coordinates/sky_coordinate.py466CODE
LOWastropy/coordinates/sky_coordinate.py949CODE
LOWastropy/coordinates/sky_coordinate.py1726CODE
LOWastropy/coordinates/distances.py103CODE
LOWastropy/coordinates/attributes.py122CODE
LOWastropy/coordinates/baseframe.py91CODE
LOWastropy/coordinates/baseframe.py194CODE
LOWastropy/coordinates/baseframe.py624CODE
LOWastropy/coordinates/baseframe.py652CODE
LOWastropy/coordinates/baseframe.py1077CODE
LOWastropy/coordinates/baseframe.py1263CODE
LOWastropy/coordinates/baseframe.py1728CODE
LOWastropy/coordinates/calculation.py29CODE
LOWastropy/coordinates/calculation.py122CODE
LOWastropy/coordinates/solar_system.py198CODE
LOWastropy/coordinates/sky_coordinate_parsers.py73CODE
LOWastropy/coordinates/sky_coordinate_parsers.py346CODE
491 more matches not shown…
Cross-Language Confusion64 hits · 381 pts
SeverityFileLineSnippetContext
HIGHastropy/wcs/docstrings.py90of a target body used in projection (m). If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py172of a target body used in projection (m). If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py177If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py183If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py188of the target body (deg). If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py193of a target body used in projection (m). If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py812undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py1051undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py1357undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py1362(deg). If undefined, this is set to `None`.CODE
HIGHastropy/wcs/docstrings.py1918If undefined, this is set to `None`.CODE
HIGHastropy/wcs/wcsapi/low_level_api.py41 unknown/undefined, an element can be `None`.STRING
HIGHastropy/wcs/wcsapi/tests/test_fitswcs.py1698 # when the equinox was undefined, because the NaN it contributed to theSTRING
HIGHastropy/io/misc/ecsv.py595 # Subtype can be written like "int64[2,null]" and we want to split thisCOMMENT
HIGHastropy/io/misc/ecsv.py912 "{""b"":[2.5,null]}"STRING
HIGHastropy/io/misc/ecsv.py962 [[6.0,7.0],[8.0,null],[10.0,11.0]]STRING
HIGHastropy/io/misc/ecsv.py983 # like "[[null, null],[null,null]]" so subsequent JSONCOMMENT
HIGHastropy/io/misc/ecsv.py1024 # - {name: array_var, datatype: string, subtype: 'int64[null]'}STRING
HIGHastropy/io/misc/ecsv.py1028 [3,4,5,null,7]STRING
HIGHastropy/io/ascii/ipac.py215 self.data.fill_values.append((null, fillval, col.name))CODE
HIGHastropy/io/ascii/ipac.py301 nullist.append((format_func(col_format, null)).strip())CODE
HIGHastropy/io/ascii/ipac.py307 nullist.append(str(null).strip())CODE
HIGHastropy/io/ascii/ecsv.py255 # Subtype is written like "int64[2,null]" and we want to split thisCOMMENT
HIGHastropy/io/ascii/ecsv.py361 # like "[[null, null],[null,null]]" so subsequent JSONCOMMENT
HIGHastropy/io/ascii/ui.py495 # Static analysis (pyright) indicates `dat` might be left undefined, so justCOMMENT
HIGHastropy/io/ascii/cds.py217 self.data.fill_values.append((col.null, fillval, col.name))CODE
HIGHastropy/io/ascii/fixedwidth.py184 zero length (e.g. for ``header row = "| col1 || col2 | col3 |"`` orSTRING
HIGHastropy/io/ascii/tests/test_ecsv.py1187 # - {name: v, datatype: string, subtype: 'int64[null]'}COMMENT
HIGHastropy/io/ascii/tests/test_ecsv.py1152# - {name: v, datatype: string, subtype: 'int64[null]'}COMMENT
HIGHastropy/io/ascii/tests/test_ecsv.py1190 [1,null] [1,null]CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1191 [null,4] [null,4,5]CODE
HIGHastropy/io/ascii/tests/test_ecsv.py982 "subtype": "float32[2,null]",CODE
HIGHastropy/io/ascii/tests/test_ecsv.py997 {"datatype": "string", "name": "1-d variable array numpy", "subtype": "uint8[null]"}CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1007 "subtype": "string[null]",CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1018 "subtype": "bool[null]",CODE
HIGHastropy/io/ascii/tests/test_fixedwidth.py97|| Name || Phone || TCP||CODE
HIGHastropy/io/fits/util.py844 # i-th character is 0 (null) and the i-1-th is 32 (space) and repeat.COMMENT
HIGHastropy/io/fits/fitsrec.py392 # (undefined); a column created without data should insteadCOMMENT
HIGHastropy/io/fits/fitsrec.py909 "(undefined) values which will be converted to False. To "CODE
HIGHastropy/io/fits/fitsrec.py975 nullval = str(column.null).strip().encode("ascii")CODE
HIGHastropy/io/fits/fitsrec.py1131 f"Column '{column.name}' contains NULL (undefined) values "CODE
HIGHastropy/io/fits/column.py1101 null = str(null)CODE
HIGHastropy/io/fits/column.py1102 if len(null) > format.width:CODE
HIGHastropy/io/fits/column.py1111 if not _is_int(null):CODE
HIGHastropy/io/fits/column.py1139 invalid["null"] = (null, msg)CODE
HIGHastropy/io/votable/tree.py1005 def null(self, null):CODE
HIGHastropy/io/votable/tree.py1006 if null is not None and isinstance(null, str):CODE
HIGHastropy/io/votable/tree.py1009 null, self._config, self._posCODE
HIGHastropy/io/votable/tree.py1012 warn_or_raise(W36, W36, null, self._config, self._pos)CODE
HIGHastropy/io/votable/converters.py699 self.null = np.asarray(field.values.null, dtype=self.format)CODE
HIGHastropy/io/votable/converters.py727 self._fast_null_param = float(self.null)CODE
HIGHastropy/io/votable/converters.py763 self._null_output = self.output(np.asarray(self.null), False)CODE
HIGHastropy/io/votable/converters.py764 self._null_binoutput = self.binoutput(np.asarray(self.null), False)CODE
HIGHastropy/io/votable/converters.py777 return self.null, TrueCODE
HIGHastropy/io/votable/converters.py790 return self.null, TrueCODE
HIGHastropy/io/votable/converters.py828 return np.where(mask, self.null, value)CODE
HIGHastropy/io/votable/converters.py866 self._fast_null_param = int(self.null)CODE
HIGHastropy/io/votable/converters.py917 return str(self.null)CODE
HIGHastropy/io/votable/converters.py933 return np.where(mask, self.null, value)CODE
HIGHastropy/io/votable/tests/test_converter.py129 assert c.parse("") == (c.null, True)CODE
4 more matches not shown…
Self-Referential Comments142 hits · 369 pts
SeverityFileLineSnippetContext
MEDIUMconftest.py3# This file is the main file used when running tests with pytest directly,COMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMdocs/wcs/examples/planetary_wcs.py1# Create a planetary WCS structureCOMMENT
MEDIUMdocs/wcs/examples/cube_wcs.py1# Define the astropy.wcs.WCS object using a Python dictionary as inputCOMMENT
MEDIUMdocs/wcs/examples/programmatic.py9# Create a new WCS object. The number of axes must be setCOMMENT
MEDIUMastropy/version.py4# This file is not included in astropy wheels/tarballs, so otherwise it willCOMMENT
MEDIUMastropy/__init__.py109# Define a base ScienceState for configuring constants and unitsCOMMENT
MEDIUMastropy/__init__.py181# Create the test() functionCOMMENT
MEDIUMastropy/visualization/mpl_style.py3# This module contains dictionaries that can be used to set a matplotlibCOMMENT
MEDIUMastropy/visualization/wcsaxes/coordinate_helpers.py1022 # Define a helper function to minimize code repetitionCOMMENT
MEDIUMastropy/visualization/wcsaxes/transforms.py6# This file contains Matplotlib transformation objects (e.g. from pixel to worldCOMMENT
MEDIUMastropy/visualization/wcsaxes/formatter_locator.py4# This file defines the AngleFormatterLocator class which is a class thatCOMMENT
MEDIUMastropy/visualization/wcsaxes/grid_paths.py42 # Define the relevant scale size using the separation between the first two pointsCOMMENT
MEDIUMastropy/visualization/wcsaxes/grid_paths.py87 # Create the pathCOMMENT
MEDIUMastropy/visualization/wcsaxes/grid_paths.py119 # Create the pathCOMMENT
MEDIUMastropy/visualization/wcsaxes/patches.py44 # Create a representation objectCOMMENT
MEDIUMastropy/visualization/wcsaxes/tests/test_grid_paths.py15 # Create a grid line of constant latitude with a point every stepCOMMENT
MEDIUMastropy/visualization/wcsaxes/tests/test_grid_paths.py18 # Create a modified grid line where the point spacing is larger by 5%COMMENT
MEDIUMastropy/timeseries/downsample.py32 # Create a writeable copy and set masked/NaN elements to zero.COMMENT
MEDIUM…s/lombscargle_multiband/implementations/mbflex_impl.py30 # Create a ones array for dy (errors) if not providedCOMMENT
MEDIUMastropy/coordinates/transformations/composite.py132 # Create a list of the transforms including flattening any constituent CompositeTransformCOMMENT
MEDIUMastropy/coordinates/transformations/composite.py150 # Create a merged attribute dictionary for any intermediate framesCOMMENT
MEDIUMastropy/coordinates/tests/test_sky_coord.py1632 # Create a SkyCoord where obsgeoloc tags along as an extra attributeCOMMENT
MEDIUMastropy/coordinates/tests/test_sky_coord.py2030 # Define a frame with multiple aliasesSTRING
MEDIUMastropy/coordinates/tests/test_frames.py872 # Create the frame object.COMMENT
MEDIUMastropy/coordinates/tests/test_transformations.py542 # Define a frame with multiple aliasesCOMMENT
MEDIUMastropy/coordinates/tests/accuracy/test_ecliptic.py112 # Create a coordinate with zero speed in ICRSCOMMENT
MEDIUMastropy/coordinates/builtin_frames/skyoffset.py43 # Create a new SkyOffsetFrame subclass for this frame class.COMMENT
MEDIUMastropy/coordinates/angles/core.py339 # Create an iterator so we can format each element of whatCOMMENT
MEDIUMastropy/coordinates/angles/angle_parsetab.py13# This file is automatically generated. Do not edit.COMMENT
MEDIUMastropy/wcs/utils.py215 # Create a 2-dimensional WCSCOMMENT
MEDIUMastropy/wcs/utils.py755 # Create a SkyCoord-like objectSTRING
MEDIUMastropy/io/misc/parquet.py479 # Create a pyarrow table from the list of arrays and the schemaCOMMENT
MEDIUMastropy/io/misc/parquet.py680 # Create an empty Astropy table inheriting all the column metadataCOMMENT
MEDIUMastropy/io/misc/ecsv.py1231 # Create the Table objectCOMMENT
MEDIUMastropy/io/misc/hdf5.py91 # This function is iterative, and only gets to writing the file whenCOMMENT
MEDIUMastropy/io/misc/hdf5.py151 # Create a Table objectCOMMENT
MEDIUMastropy/io/ascii/ecsv.py209 # Create the list of io.ascii column objects from `header`COMMENT
MEDIUMastropy/io/ascii/ui.py237 # This function is a light wrapper around core._get_reader to provide aSTRING
MEDIUMastropy/io/ascii/mrt.py684 # Create a copy of the ``table``, so that it the copy gets modified andCOMMENT
MEDIUMastropy/io/ascii/daophot.py168 # Create the list of io.ascii column objectsCOMMENT
MEDIUMastropy/io/ascii/tests/test_ecsv.py931# Define a number of specialized columns for testing and the expected valuesCOMMENT
MEDIUMastropy/io/ascii/tests/test_ecsv.py1244 # Create a table and write to a fileSTRING
MEDIUMastropy/io/fits/convenience.py522 # Create a new HDU objectCOMMENT
MEDIUMastropy/io/fits/convenience.py950 # This function is EXCLUSIVELY for printing the diff report to screenCOMMENT
MEDIUMastropy/io/fits/convenience.py1003 # Create the default data file name if one was not providedCOMMENT
MEDIUMastropy/io/fits/header.py931 # Create a temporary card that looks like the one being set; if theSTRING
MEDIUMastropy/io/fits/header.py1977 """This class provides a fast header parsing, without all the additionalSTRING
MEDIUMastropy/io/fits/hdu/table.py437 # Create a new table with the same columns, but empty rowsCOMMENT
MEDIUMastropy/io/fits/hdu/table.py1226 # Create a new HDU using the supplied header and dataCOMMENT
MEDIUMastropy/io/fits/hdu/hdulist.py1212 # This method is currently only called from HDUList.fromstring andCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/header.py334 # Create the first column for the table. This column holds theCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/header.py338 # Create the additional columns required for floating pointCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/header.py386 # Create the ColDefs object for the tableCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/header.py392 # Create the ColDefs object for the tableCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py239 # Create a compressed FITS fileCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py384 # Create a compressed version of the scaled imageCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py1551 # Create a PrimaryHDU with some dataSTRING
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py1554 # Create a CompImageHDU using the PrimaryHDU's headerSTRING
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py1514 # Create a CompImageHDU using a PrimaryHDU's headerSTRING
82 more matches not shown…
Modern Structural Boilerplate253 hits · 252 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py44logger = logging.getLogger(__name__)CODE
LOWastropy/__init__.py15__all__ = [ # noqa: RUF100, RUF022CODE
LOWastropy/logger.py32__all__ = [CODE
LOWastropy/visualization/time.py10__all__ = ["time_support"]CODE
LOWastropy/visualization/hist.py5__all__ = ["hist"]CODE
LOWastropy/visualization/units.py10__all__ = ["MplQuantityConverter", "quantity_support"]CODE
LOWastropy/visualization/mpl_style.py7__all__ = ["astropy_mpl_style", "astropy_mpl_style_1"]CODE
LOWastropy/visualization/stretch.py12__all__ = [CODE
LOWastropy/visualization/interval.py16__all__ = [CODE
LOWastropy/visualization/lupton_rgb.py19__all__ = [CODE
LOWastropy/visualization/transform.py4__all__ = ["BaseTransform", "CompositeTransform"]CODE
LOWastropy/visualization/mpl_normalize.py40__all__ = [CODE
LOWastropy/visualization/basic_rgb.py15__all__ = ["make_rgb"]CODE
LOWastropy/visualization/scripts/fits2bitmap.py9__all__ = ["fits2bitmap", "main"]CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py27__all__ = ["CoordinateHelper"]CODE
LOWastropy/visualization/wcsaxes/transforms.py23__all__ = [CODE
LOWastropy/visualization/wcsaxes/_auto.py5__all__ = ["auto_assign_coord_positions"]CODE
LOWastropy/visualization/wcsaxes/core.py24__all__ = ["WCSAxes", "WCSAxesSubplot"]CODE
LOWastropy/visualization/wcsaxes/patches.py18__all__ = ["Quadrangle", "SphericalCircle"]CODE
LOWastropy/visualization/wcsaxes/utils.py7__all__ = [CODE
LOWastropy/visualization/wcsaxes/frame.py15__all__ = [CODE
LOWastropy/visualization/wcsaxes/helpers.py15__all__ = ["add_beam", "add_scalebar"]CODE
LOWastropy/visualization/wcsaxes/wcsapi.py16__all__ = [CODE
LOWastropy/timeseries/downsample.py15__all__ = ["aggregate_downsample"]CODE
LOWastropy/timeseries/core.py9__all__ = ["BaseTimeSeries", "autocheck_required_columns"]CODE
LOWastropy/timeseries/sampled.py13__all__ = ["TimeSeries"]CODE
LOWastropy/timeseries/binned.py13__all__ = ["BinnedTimeSeries"]CODE
LOWastropy/timeseries/io/kepler.py11__all__ = ["kepler_fits_reader"]CODE
LOWastropy/timeseries/periodograms/base.py8__all__ = ["BasePeriodogram"]CODE
LOWastropy/timeseries/periodograms/bls/methods.py3__all__ = ["bls_fast", "bls_slow"]CODE
LOWastropy/timeseries/periodograms/bls/__init__.py13__all__ = ["BoxLeastSquares", "BoxLeastSquaresResults"]CODE
LOWastropy/timeseries/periodograms/bls/core.py3__all__ = ["BoxLeastSquares", "BoxLeastSquaresResults"]CODE
LOW…/timeseries/periodograms/lombscargle_multiband/core.py14__all__ = ["LombScargleMultiband"]CODE
LOW…s/lombscargle_multiband/implementations/mbflex_impl.py3__all__ = ["lombscargle_mbflex"]CODE
LOW…s/lombscargle_multiband/implementations/mbfast_impl.py5__all__ = ["lombscargle_mbfast"]CODE
LOW…iodograms/lombscargle_multiband/implementations/mle.py3__all__ = ["construct_regularization", "design_matrix", "periodic_fit"]CODE
LOW…odograms/lombscargle_multiband/implementations/main.py8__all__ = ["available_methods", "lombscargle_multiband"]CODE
LOW…eries/periodograms/lombscargle/implementations/main.py8__all__ = ["available_methods", "lombscargle"]CODE
LOWastropy/coordinates/sky_coordinate.py39__all__ = ["SkyCoord", "SkyCoordInfo"]CODE
LOWastropy/coordinates/distances.py17__all__ = ["Distance"]CODE
LOWastropy/coordinates/attributes.py14__all__ = [CODE
LOWastropy/coordinates/baseframe.py7__all__ = [CODE
LOWastropy/coordinates/matching.py18__all__ = [CODE
LOWastropy/coordinates/solar_system.py27__all__ = [CODE
LOWastropy/coordinates/funcs.py27__all__ = [CODE
LOWastropy/coordinates/spectral_coordinate.py18__all__ = ["SpectralCoord"]CODE
LOWastropy/coordinates/matrix_utilities.py7__all__ = ["is_rotation_or_reflection", "rotation_matrix"]CODE
LOWastropy/coordinates/name_resolve.py26__all__ = ["get_icrs_coordinates"]CODE
LOWastropy/coordinates/polarization.py11__all__ = ["StokesCoord", "StokesSymbol", "custom_stokes_symbol_mapping"]CODE
LOWastropy/coordinates/spectral_quantity.py8__all__ = ["SpectralQuantity"]CODE
LOWastropy/coordinates/errors.py5__all__ = [CODE
LOWastropy/coordinates/earth.py28__all__ = [CODE
LOWastropy/coordinates/transformations/graph.py29__all__ = ["TransformGraph"]CODE
LOWastropy/coordinates/transformations/affine.py18__all__ = [CODE
LOWastropy/coordinates/transformations/composite.py22__all__ = ["CompositeTransform"]CODE
LOWastropy/coordinates/transformations/base.py14__all__ = ["CoordinateTransform"]CODE
LOWastropy/coordinates/transformations/function.py18__all__ = ["FunctionTransform", "FunctionTransformWithFiniteDifference"]CODE
LOWastropy/coordinates/representation/__init__.py41__all__ = [CODE
LOWastropy/coordinates/builtin_frames/altaz.py19__all__ = ["AltAz"]CODE
LOWastropy/coordinates/builtin_frames/equatorial.py25__all__ = ["TEME", "TETE"]CODE
193 more matches not shown…
Over-Commented Block268 hits · 248 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py1# Licensed under a 3-clause BSD style license - see LICENSE.rstCOMMENT
LOWdocs/wcs/examples/programmatic.py21# Three pixel coordinates of interest.COMMENT
LOWdocs/wcs/examples/from_file.py21COMMENT
LOWcextern/trim_cfitsio.sh41# file. If there are compilation issues after updating, it may be thatCOMMENT
LOWcextern/expat/lib/internal.h81COMMENT
LOWcextern/expat/lib/internal.h101COMMENT
LOWcextern/expat/lib/internal.h121# define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "d"COMMENT
LOWcextern/expat/lib/xmltok.h61*/COMMENT
LOWcextern/expat/lib/xmltok.h81/* The following tokens are returned only by XmlPrologTok */COMMENT
LOWcextern/expat/lib/xmltok.h101# define XML_TOK_NAME_PLUS 32 /* name+ */COMMENT
LOWcextern/expat/lib/xmltok.h121# define XML_TOK_IGNORE_SECT 42COMMENT
LOWcextern/expat/lib/xmlparse.c81# error XML_CONTEXT_BYTES must be defined, non-empty and >=0 (0 to disable, >=1 to enable; 1024 is a common default)COMMENT
LOWcextern/expat/lib/xmlparse.c101#include <limits.h> /* INT_MAX, UINT_MAX */COMMENT
LOWcextern/expat/lib/xmlparse.c121#include "ascii.h"COMMENT
LOWcextern/expat/lib/xmlparse.c161 * Windows >=Vista (rand_s): _WIN32. \COMMENT
LOWcextern/expat/lib/xmlparse.c181# define XmlGetInternalEncoding XmlGetUtf8InternalEncodingCOMMENT
LOWcextern/expat/lib/xmlparse.c201# define XML_T(x) (const wchar_t) xCOMMENT
LOWcextern/expat/lib/xmlparse.c781 ACCOUNTING m_accounting;COMMENT
LOWcextern/expat/lib/xmlparse.c4461 // element names ("qualified names") of formCOMMENT
LOWcextern/expat/lib/expat_external.h81 platform's malloc() implementation.COMMENT
LOWcextern/expat/lib/expat_external.h101# endifCOMMENT
LOWcextern/expat/lib/expat_external.h121# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))COMMENT
LOWcextern/expat/lib/winconfig.h41#endifCOMMENT
LOWcextern/expat/lib/ascii.h41#define ASCII_F 0x46COMMENT
LOWcextern/expat/lib/ascii.h61#define ASCII_Z 0x5ACOMMENT
LOWcextern/expat/lib/ascii.h81#define ASCII_s 0x73COMMENT
LOWcextern/expat/lib/ascii.h101#define ASCII_TAB 0x09COMMENT
LOWcextern/expat/lib/ascii.h121#define ASCII_HASH 0x23COMMENT
LOWcextern/expat/lib/xmltok.c241# define MINBPC(enc) ((enc)->minBytesPerChar)COMMENT
LOWcextern/expat/lib/xmltok.c261# define BYTE_TO_ASCII(enc, p) (AS_NORMAL_ENCODING(enc)->byteToAscii(enc, p))COMMENT
LOWcextern/expat/lib/xmltok.c301/* c is an ASCII character */COMMENT
LOWcextern/expat/lib/xmltok.c781#else /* not XML_MIN_SIZE */COMMENT
LOWcextern/expat/lib/xmltok.c801# undef BYTE_TO_ASCIICOMMENT
LOWcextern/expat/lib/xmltok.c861 {COMMENT
LOWcextern/expat/lib/xmltok.c921# define BYTE_TO_ASCII(enc, p) BIG2_BYTE_TO_ASCII(p)COMMENT
LOWcextern/expat/lib/xmltok.c1641}COMMENT
LOWcextern/wcslib/C/wcstrig.h161COMMENT
LOWcextern/wcslib/C/wcstrig.h181#define acosd(X) acos(X)*R2DCOMMENT
LOWcextern/wcslib/C/lin.h801#define linfree_errmsg lin_errmsgCOMMENT
LOWcextern/wcslib/C/spc.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/spc.c41#define A2S 300; // Axis linear in air wavelengths.COMMENT
LOWcextern/wcslib/C/wcsfix.h581*COMMENT
LOWcextern/wcslib/C/wcslib.h41#include "fitshdr.h"COMMENT
LOWcextern/wcslib/C/wcs.h2321// Defined mainly for backwards compatibility, use wcssub() instead.COMMENT
LOWcextern/wcslib/C/wcserr.c21 Module author: Michael DroettboomCOMMENT
LOWcextern/wcslib/C/wcshdr.h601* Specifically the keywords are:COMMENT
LOWcextern/wcslib/C/wcshdr.h641# TIMEUNIT -COMMENT
LOWcextern/wcslib/C/wcshdr.h661# XPOSURE -COMMENT
LOWcextern/wcslib/C/wcshdr.h741# CROTAi for iCROTnCOMMENT
LOWcextern/wcslib/C/wcshdr.h1281#ifdef __cplusplusCOMMENT
LOWcextern/wcslib/C/wcshdr.h1301#define WCSHDR_RADECSYS 0x00000800COMMENT
LOWcextern/wcslib/C/tab.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/wcsfix.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/prj.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/spc.h881COMMENT
LOWcextern/wcslib/C/dis.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/dis.c1661COMMENT
LOWcextern/wcslib/C/wcs.c21 http://www.atnf.csiro.au/computing/software/wcsCOMMENT
LOWcextern/wcslib/C/wcs.c41#include "dis.h"COMMENT
LOWcextern/wcslib/C/wcs.c3441// : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : :COMMENT
208 more matches not shown…
Excessive Try-Catch Wrapping227 hits · 220 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py280 except Exception:CODE
LOWastropy/version.py11except Exception:CODE
LOWastropy/version.py31 except Exception:CODE
LOWastropy/logger.py156 except Exception:CODE
LOWastropy/logger.py237 except Exception:CODE
LOWastropy/visualization/scripts/fits2bitmap.py91 except Exception as e:CODE
LOWastropy/coordinates/sky_coordinate.py510 except Exception:CODE
LOWastropy/coordinates/sky_coordinate.py1514 except Exception:STRING
LOWastropy/coordinates/attributes.py212 except Exception as err:CODE
LOWastropy/coordinates/baseframe.py291 except Exception as err:CODE
LOWastropy/coordinates/baseframe.py596 except Exception:STRING
LOWastropy/coordinates/baseframe.py717 except Exception:STRING
LOWastropy/coordinates/baseframe.py1426 except Exception:STRING
LOWastropy/coordinates/calculation.py183 except Exception:CODE
LOWastropy/coordinates/calculation.py185 except Exception:CODE
LOWastropy/coordinates/calculation.py213 except Exception:CODE
LOWastropy/coordinates/solar_system.py189 except Exception:CODE
LOWastropy/coordinates/polarization.py248 except Exception:CODE
MEDIUMastropy/coordinates/polarization.py245def __eq__(self, other):CODE
LOWastropy/coordinates/earth.py225 except Exception as exc_geodetic:CODE
LOWastropy/coordinates/sky_coordinate_parsers.py337 except Exception as err:STRING
LOWastropy/coordinates/sky_coordinate_parsers.py492 except Exception as err:STRING
LOWastropy/coordinates/sky_coordinate_parsers.py531 except Exception as err:STRING
LOWastropy/coordinates/tests/test_sky_coord_velocities.py142 except Exception as e:CODE
LOWastropy/coordinates/representation/cartesian.py206 except Exception:CODE
LOWastropy/coordinates/representation/cartesian.py279 except Exception as err:CODE
LOWastropy/coordinates/representation/cartesian.py303 except Exception as err:CODE
LOWastropy/coordinates/representation/spherical.py395 except Exception:CODE
LOWastropy/coordinates/representation/base.py123 except Exception as err:CODE
LOWastropy/coordinates/representation/base.py473 except Exception:CODE
LOWastropy/coordinates/representation/base.py906 except Exception as err:STRING
LOWastropy/coordinates/representation/base.py1160 except Exception:STRING
LOWastropy/coordinates/representation/base.py1204 except Exception:STRING
LOWastropy/config/paths.py659 except Exception:STRING
LOWastropy/config/paths.py665 except Exception:STRING
LOWastropy/config/paths.py745 except Exception:CODE
LOWastropy/config/paths.py754 except Exception:CODE
LOWastropy/config/tests/test_configs.py838 except Exception:CODE
LOWastropy/wcs/wcs.py1682 except Exception:STRING
LOWastropy/wcs/wcs.py1697 except Exception:STRING
LOWastropy/wcs/wcsapi/fitswcs.py555 except Exception:CODE
LOWastropy/wcs/wcsapi/fitswcs.py566 except Exception:CODE
LOWastropy/io/misc/ecsv.py427 except Exception:CODE
LOWastropy/io/misc/ecsv.py887 except Exception as exc:CODE
LOWastropy/io/ascii/ipac.py110 except Exception:CODE
LOWastropy/io/ascii/ipac.py113 except Exception:CODE
LOWastropy/io/ascii/ipac.py302 except Exception:CODE
LOWastropy/io/ascii/ecsv.py410 except Exception as exc:CODE
LOWastropy/io/ascii/ui.py132 except Exception:STRING
LOWastropy/io/ascii/ui.py292 except Exception:CODE
LOWastropy/io/ascii/ui.py413 except Exception:CODE
LOWastropy/io/fits/convenience.py923 except Exception:CODE
LOWastropy/io/fits/_logical_helpers.py31 except Exception:CODE
LOWastropy/io/fits/diff.py288 except Exception as exc:CODE
LOWastropy/io/fits/diff.py297 except Exception as exc:CODE
LOWastropy/io/fits/fitstime.py462 except Exception as err:CODE
LOWastropy/io/fits/column.py737 except Exception:CODE
LOWastropy/io/fits/column.py1660 except Exception:CODE
LOWastropy/io/fits/column.py2154 except Exception:CODE
LOWastropy/io/fits/column.py2386 except Exception:CODE
167 more matches not shown…
AI Slop Vocabulary73 hits · 114 pts
SeverityFileLineSnippetContext
LOW.pyinstaller/run_astropy_tests.py23 # NOTE: we can't simply useCOMMENT
LOWastropy/visualization/time.py53 # can just use this.COMMENT
LOWastropy/visualization/wcsaxes/transforms.py137 # out the NaN values would have a performance hit, so instead we just passCOMMENT
LOWastropy/coordinates/matching.py389 # just use the stored KD-TreeCOMMENT
LOWastropy/coordinates/spectral_quantity.py229 # If equivalencies is explicitly set to None, we should just use theCOMMENT
LOWastropy/coordinates/sky_coordinate_parsers.py513 # (ok since we know it is exactly rectangular). (Note: can't just use zip(*values)STRING
LOWastropy/coordinates/tests/test_spectral_quantity.py166 # while some should just return plain QuantityCOMMENT
LOWastropy/coordinates/tests/test_spectral_quantity.py231 # while some should just return plain QuantityCOMMENT
LOWastropy/coordinates/tests/test_spectral_quantity.py244 # while some should just return plain QuantityCOMMENT
LOWastropy/coordinates/tests/test_spectral_quantity.py271 # while some should just return plain QuantityCOMMENT
LOWastropy/coordinates/tests/test_regression.py308 # Tolerance here just set to how well the coordinates match, which is muchCOMMENT
LOWastropy/coordinates/representation/base.py705 # further definitions with the same name, just add qualnameCOMMENT
LOW…opy/coordinates/builtin_frames/icrs_cirs_transforms.py82 # if no distance, just use the coordinate direction to yield theCOMMENT
LOW…opy/coordinates/builtin_frames/icrs_cirs_transforms.py167 # if no distance, just use the coordinate direction to yield theCOMMENT
LOW…opy/coordinates/builtin_frames/icrs_cirs_transforms.py217 # if no distance, just use the coordinate direction to yield theCOMMENT
LOW…coordinates/builtin_frames/cirs_observed_transforms.py61 # since we've transformed to CIRS at the observatory location, just use CIRS distanceCOMMENT
LOW…tes/builtin_frames/intermediate_rotation_transforms.py38 # Here, we just set that to an I-matrix, because we're alreadyCOMMENT
LOW…tes/builtin_frames/intermediate_rotation_transforms.py59 # c2tcio expects a GCRS->CIRS matrix, but we just set that to an I-matrixCOMMENT
LOW…tes/builtin_frames/intermediate_rotation_transforms.py85 # c2tcio expects a GCRS->CIRS matrix, but we just set that to an I-matrixCOMMENT
LOWastropy/wcs/wcs.py2067 # simply return initial approximation:STRING
LOWastropy/wcs/wcsapi/fitswcs.py398 # WCS that matter here (we can't just use the WCS object as a hash sinceCOMMENT
MEDIUMastropy/wcs/src/wcslib_wrap.c2424 // might be tricky and not robust to future WCSLIB changes. Instead,COMMENT
LOWastropy/io/misc/pyarrow/csv.py305 # No nulls, just return an ndarray view of the pyarrayCOMMENT
MEDIUMastropy/io/ascii/sextractor.py37 # Updated along with issue #4603, for more robust parsing of unitCOMMENT
LOWastropy/io/ascii/fixedwidth.py204 # If column positions are already specified then just use those.COMMENT
LOWastropy/io/fits/header.py1675 # This used to just set key = (key, 0) and then go on to act as if theCOMMENT
LOWastropy/io/fits/util.py585 # It suffices to just pass the underlying buffer directly to theCOMMENT
LOWastropy/io/fits/card.py1253 # Already a float so just pass throughCOMMENT
LOWastropy/io/fits/fitsrec.py389 # The input column had an empty array, so just use the fillCOMMENT
LOWastropy/io/fits/column.py998 tmp = Column(format="I") # just use a throw-away formatCODE
LOWastropy/io/fits/hdu/table.py179 # definitions come from, so just return an empty ColDefsCOMMENT
LOWastropy/io/fits/hdu/table.py420 # Columns should now just return a reference to the data._coldefsCOMMENT
LOWastropy/io/fits/hdu/compressed/compressed.py505 # data, we can just use thisCOMMENT
LOWastropy/io/fits/hdu/compressed/_tiled_compression.py677 # For now, we just use the default ZBLANK value and assumeCOMMENT
LOWastropy/io/fits/hdu/compressed/_quantization.py68 # For NO_DITHER we should just use the scale and zero directlyCOMMENT
LOWastropy/io/fits/tests/test_image.py837 # Let's just add a value to the data that should be converted to NaNCOMMENT
LOWastropy/utils/shapes.py371 # For np.shape, etc., just return the attribute.COMMENT
LOWastropy/utils/shapes.py374 # Fall-back, just pass the arguments on since perhaps the functionCOMMENT
LOWastropy/utils/data_info.py604 # be used here, since on access, one should not just return theCOMMENT
LOWastropy/utils/data.py1077 # not called from inside an astropy package. So just pass nameCOMMENT
LOWastropy/utils/data.py1832 # just use the cache, with update_cache if appropriate.COMMENT
LOWastropy/utils/decorators.py862 # The base property.__get__ will just return self here;COMMENT
LOWastropy/utils/masked/core.py185 # Otherwise we're a subclass and should just pass information on.COMMENT
LOWastropy/utils/masked/core.py1051 # By default, just pass it through for now.COMMENT
LOWastropy/utils/metadata/core.py92 # class attribute access. Often, descriptors just return `self`, but if theCOMMENT
LOWastropy/modeling/core.py1743 # don't want to convert the parameter, just add the unit directly,COMMENT
LOWastropy/modeling/core.py1992 # just add a None since there is no broadcasting of outputs andCOMMENT
LOWastropy/modeling/_fitting_parallel.py202 # If all data values are NaN, just set parameters to NaN and move onCOMMENT
MEDIUMastropy/modeling/tests/test_quantities_fitting.py18# Fitting should be as intuitive as possible to the user. Essentially, modelsCOMMENT
MEDIUMastropy/modeling/tests/test_quantities_parameters.py295 # Essentially here we are checking that parameters behave like QuantityCOMMENT
LOWastropy/time/core.py964 # could just use np.ma.is_masked(value).COMMENT
LOWastropy/units/quantity.py746 # For given Quantity output, just set the unit. We know the unitSTRING
LOWastropy/units/quantity.py1889 # function is in none of the above, we simply call the numpyCOMMENT
LOWastropy/units/tests/test_quantity_erfa_ufuncs.py485 # Sadly does not just use the values from above.COMMENT
LOWastropy/units/function/core.py656 # And really it should just return NotImplemented, since possiblyCOMMENT
LOWastropy/units/quantity_helper/helpers.py274 # if first arg is not a quantity, just return plain arrayCOMMENT
LOWastropy/table/serialize.py223 # just add to new_cols and all we have to do is to link to the new name.COMMENT
LOWastropy/table/serialize.py314 # If no metadata was created then just return the original table.COMMENT
MEDIUMastropy/table/table.py1408 # sequence. This function is relatively intricate and tries toCOMMENT
LOWastropy/table/table.py467 # Subsequent access will just return None.COMMENT
13 more matches not shown…
Redundant / Tautological Comments69 hits · 96 pts
SeverityFileLineSnippetContext
LOWastropy/visualization/wcsaxes/_auto.py82 # Check if option is consistent with any fixed tick positions - thatCOMMENT
LOWastropy/visualization/wcsaxes/core.py426 # Check if the WCS object is an instance of `astropy.wcs.WCS`COMMENT
LOWastropy/visualization/wcsaxes/coordinate_range.py92 # Check if range is smaller when normalizing to the range 0 to 360COMMENT
LOWastropy/visualization/wcsaxes/coordinate_range.py104 # Check if range is smaller when normalizing to the range -180 to 180COMMENT
LOWastropy/coordinates/transformations/composite.py139 # Check if there may be an origin shiftCOMMENT
LOWastropy/coordinates/angles/core.py376 # Check if value is not nan to avoid ValueErrors when turning it intoCOMMENT
LOWastropy/wcs/wcs.py3058 # Check if we can handle TPD distortion correctlySTRING
LOWastropy/wcs/utils.py820 # Check if classes match uniquelySTRING
LOWastropy/io/misc/ecsv.py424 # Check if the given dtype is a valid numpy dtype.COMMENT
LOWastropy/io/misc/ecsv.py607 # Check if the subtype corresponds to a valid numpy dtype. This is required byCOMMENT
LOWastropy/io/misc/hdf5.py138 # Open the file for reading, and recursively call read_table_hdf5 withCOMMENT
LOWastropy/io/misc/hdf5.py300 # Open the file for appending or writingCOMMENT
LOWastropy/io/misc/pyarrow/csv.py510 # Set column_names to an empty list and autogenerate_column_names to True.COMMENT
LOWastropy/io/ascii/ui.py892 # Set up to coerce `table` input into a readable file object by selectingCOMMENT
LOWastropy/io/ascii/cds.py130 i_col_def -= 1 # Set i_col_def to last description lineCODE
LOWastropy/io/ascii/basic.py390 # Check if dtype.kind is string or unicode. See help(np.core.numerictypes)COMMENT
LOWastropy/io/ascii/mrt.py269 # Check if column is MaskedColumnCOMMENT
LOWastropy/io/ascii/mesa.py230 # Check if this is a history file and remove restarts if requestedCOMMENT
LOWastropy/io/ascii/tests/test_cds.py325 # Check if the original table columns remains unmodified.COMMENT
LOWastropy/io/fits/connect.py303 # Check if column is masked. Here, we make a guess based on theCOMMENT
LOWastropy/io/fits/connect.py511 # Check if output file already existsCOMMENT
LOWastropy/io/fits/fitstime.py147 # Check if geocentric global location is specifiedCOMMENT
LOWastropy/io/fits/fitstime.py154 # Check if geodetic global location is specified (since geocentric failed)COMMENT
LOWastropy/io/fits/fitstime.py271 # Check if column-specific reference position TRPOSn is specifiedCOMMENT
LOWastropy/io/fits/fitstime.py523 # Check if the column is time coordinate (not spatial)COMMENT
LOWastropy/io/fits/hdu/streaming.py74 # Check if the file already exists. If it does not, check to seeCOMMENT
LOWastropy/io/fits/hdu/hdulist.py1268 # Close the file if necessary (issue #6168)COMMENT
LOWastropy/io/fits/hdu/hdulist.py1336 # Close the file: seeCOMMENT
LOWastropy/io/fits/tests/test_hdulist.py1218 # Read the file again and try popping from the beginningCOMMENT
LOWastropy/io/fits/scripts/fitsdiff.py433 # Close the file if used for the logging output, and remove handlers toCOMMENT
LOWastropy/io/registry/base.py124 # Check if this is a short name (e.g. 'rdb') which is deprecated inCOMMENT
LOWastropy/io/votable/tree.py1199 # Set config to ignore verification (prevent warnings and exceptions) on parse.COMMENT
LOWastropy/io/votable/connect.py165 # Check if output file already existsCOMMENT
LOWastropy/io/votable/converters.py312 # Check if this is a bounded variable-length fieldCOMMENT
LOWastropy/io/votable/converters.py431 # Check if this is a bounded variable-length fieldCOMMENT
LOWastropy/io/votable/converters.py1508 # Check if we have stored the original arraysize with boundsCOMMENT
LOWastropy/utils/data.py396 # Check if the file object supports random access, and if not,COMMENT
LOWastropy/utils/decorators.py578 # Check if the newkeyword was given as well.COMMENT
LOWastropy/utils/decorators.py856 # Check if another thread initialised before we locked.COMMENT
LOWastropy/utils/decorators.py946 # Check if another thread beat us to it.COMMENT
LOWastropy/utils/tests/test_decorators.py887 # Check if the decorator works on methods too, to spice it up we try doubleCOMMENT
LOWastropy/utils/tests/test_decorators.py902 # Check if the decorator works on classes tooCOMMENT
LOWastropy/utils/iers/iers.py485 # Set status to source, using the routine passed in.COMMENT
LOWastropy/nddata/ccddata.py207 # Check if a unit is set. This can be temporarily disabled by theCOMMENT
LOWastropy/nddata/ccddata.py697 # Check if there's a simple flags extension or multiple flagCOMMENT
LOWastropy/nddata/nduncertainty.py125 # Check if two units are given and take the explicit one then.COMMENT
LOWastropy/nddata/nduncertainty.py134 # Check if two units are given and take the explicit one then.COMMENT
LOWastropy/nddata/nduncertainty.py375 # Check if the subclass supports correlationCOMMENT
LOWastropy/nddata/nddata.py148 # Check if data is any type from which to collect some implicitlyCOMMENT
LOWastropy/nddata/utils.py382 # Check if large array is not smallerCOMMENT
LOWastropy/nddata/decorators.py195 # Check if the property was explicitly given and issue aCOMMENT
LOWastropy/nddata/mixins/ndarithmetic.py252 # Check if the key value is populated, error if not NoneSTRING
LOWastropy/modeling/core.py3111 # Assign directly to the private attribute (instead of using the setter)COMMENT
LOWastropy/modeling/physical_models.py179 # Check if input values are physically possibleCOMMENT
LOWastropy/time/tests/test_basic.py74 # Set scale to TAICOMMENT
LOWastropy/time/tests/test_mask.py141 # Assign value to unmask, though the instance stays masked.COMMENT
LOWastropy/units/quantity_helper/converters.py71 # Check if it was loaded while we waited for the lockCOMMENT
LOWastropy/table/_dataframes.py118 # Check if pandas-like or pyarrow-likeCOMMENT
LOWastropy/table/_dataframes.py142 # Check if pandas-like, PANDAS_LIKE is reserved for pandas itselfCOMMENT
LOWastropy/table/table.py3959 np.broadcast(self[name], other[name]) # Check if broadcast-ableCODE
9 more matches not shown…
AI Structural Patterns95 hits · 82 pts
SeverityFileLineSnippetContext
LOWastropy/visualization/mpl_normalize.py467CODE
LOWastropy/visualization/mpl_normalize.py323CODE
LOWastropy/visualization/scripts/fits2bitmap.py12CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py84CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py538CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py172CODE
LOWastropy/visualization/wcsaxes/ticklabels.py71CODE
LOWastropy/visualization/wcsaxes/helpers.py29CODE
LOW…/timeseries/periodograms/lombscargle_multiband/core.py86CODE
LOW…s/lombscargle_multiband/implementations/mbfast_impl.py8CODE
LOW…odograms/lombscargle_multiband/implementations/main.py19CODE
LOW…eries/periodograms/lombscargle/implementations/main.py109CODE
LOWastropy/coordinates/distances.py103CODE
LOWastropy/coordinates/spectral_coordinate.py299CODE
LOWastropy/coordinates/angles/core.py235CODE
LOWastropy/wcs/wcs.py509CODE
LOWastropy/io/misc/pyarrow/csv.py26CODE
LOWastropy/io/fits/connect.py120CODE
LOWastropy/io/fits/file.py149CODE
LOWastropy/io/fits/diff.py208CODE
LOWastropy/io/fits/diff.py478CODE
LOWastropy/io/fits/column.py561CODE
LOWastropy/io/fits/column.py1031CODE
LOWastropy/io/fits/hdu/groups.py92CODE
LOWastropy/io/fits/hdu/hdulist.py43CODE
LOWastropy/io/fits/hdu/hdulist.py1170CODE
LOWastropy/io/fits/hdu/compressed/header.py240CODE
LOWastropy/io/fits/hdu/compressed/compressed.py52CODE
LOWastropy/io/votable/tree.py663CODE
LOWastropy/io/votable/tree.py785CODE
LOWastropy/io/votable/tree.py1334CODE
LOWastropy/io/votable/tree.py1796CODE
LOWastropy/io/votable/tree.py1877CODE
LOWastropy/io/votable/tree.py2341CODE
LOWastropy/io/votable/tree.py2502CODE
LOWastropy/io/votable/table.py31CODE
LOWastropy/utils/misc.py517CODE
LOWastropy/utils/data_info.py728CODE
LOWastropy/utils/data.py206CODE
LOWastropy/utils/data.py1347CODE
LOWastropy/utils/data.py1461CODE
LOWastropy/utils/masked/function_helpers.py1209CODE
LOWastropy/utils/masked/function_helpers.py1243CODE
LOWastropy/utils/metadata/merge.py226CODE
LOWastropy/utils/metadata/merge.py231CODE
LOWastropy/modeling/spline.py35CODE
LOWastropy/modeling/spline.py305CODE
LOWastropy/modeling/_fitting_parallel.py121CODE
LOWastropy/modeling/_fitting_parallel.py346CODE
LOWastropy/modeling/separable.py166CODE
LOWastropy/modeling/parameters.py194CODE
LOWastropy/modeling/parameters.py613CODE
LOWastropy/modeling/fitting.py355CODE
LOWastropy/modeling/fitting.py1341CODE
LOWastropy/modeling/fitting.py1700CODE
LOWastropy/modeling/polynomial.py238CODE
LOWastropy/modeling/polynomial.py746CODE
LOWastropy/modeling/polynomial.py1137CODE
LOWastropy/modeling/polynomial.py1402CODE
LOWastropy/modeling/polynomial.py1557CODE
35 more matches not shown…
Fake / Example Data20 hits · 22 pts
SeverityFileLineSnippetContext
LOWastropy/io/ascii/tests/test_fixedwidth.py105 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/ascii/tests/test_fixedwidth.py120 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/ascii/tests/test_fixedwidth.py136 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/ascii/tests/test_fixedwidth.py158 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/ascii/tests/test_fixedwidth.py172 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/ascii/tests/test_fixedwidth.py189 assert dat[0][1] == "555-1234"STRING
LOWastropy/io/votable/tests/test_table.py851 ID = "dummy_id"CODE
LOWastropy/io/votable/tests/test_table.py863 assert "dummy_id" in err_msgCODE
LOWastropy/io/votable/tests/test_table.py873 ID = "dummy_id"CODE
LOWastropy/io/votable/tests/test_table.py885 assert "dummy_id" in err_msgCODE
LOWastropy/modeling/tests/test_quantities_fitting.py295 fake_data = comb(e)CODE
LOWastropy/modeling/tests/test_quantities_fitting.py297 res = fit(comb, e, fake_data)CODE
LOWastropy/modeling/tests/test_quantities_fitting.py303 fake_data = comb(e)CODE
LOWastropy/modeling/tests/test_quantities_fitting.py305 res = fit(comb, e, fake_data)CODE
LOWastropy/units/quantity_helper/function_helpers.py1312 fake_name = "_" * len(cls_name)CODE
LOWastropy/units/quantity_helper/function_helpers.py1313 fake_cls = type(fake_name, (np.ndarray,), {})CODE
LOWastropy/units/quantity_helper/function_helpers.py1315 fake_name, cls_nameCODE
LOWastropy/convolution/tests/test_convolve_models.py91 fake_data = fake_model(x) + np.random.normal(size=len(x))CODE
LOWastropy/convolution/tests/test_convolve_models.py95 fitted_model = fitter(init_model, x, fake_data)CODE
LOWastropy/convolution/tests/test_convolve_models.py97 me = np.mean(fitted_model(x) - fake_data)CODE
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOW…tes/builtin_frames/intermediate_rotation_transforms.py233# TODO: implement GCRS<->CIRS if there's call for it. The thing that's awkwardCOMMENT
LOWastropy/wcs/wcsapi/fitswcs.py780 # TODO: implement support for more locations when Time supports itCOMMENT
LOWastropy/io/fits/connect.py381 # TODO: implement maskingCOMMENT
LOWastropy/io/fits/column.py1083 # TODO: Add validation for these keywords, obviouslyCOMMENT
LOWastropy/utils/masked/core.py1267 # TODO: implement this at the ufunc level.COMMENT
LOWastropy/units/tests/test_logarithmic.py1045 # TODO: add tests for all supported functions!COMMENT
LOWastropy/stats/bayesian_blocks.py60# TODO: implement other fitness functions from appendix C of Scargle 2013COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWastropy/visualization/scripts/tests/test_fits2bitmap.py21 def test_function(self, tmp_path):CODE
LOWastropy/modeling/tests/test_parameters.py48 def do_something(self, v):CODE
Verbosity Indicators2 hits · 2 pts
SeverityFileLineSnippetContext
LOWastropy/io/ascii/core.py881 # Step 1: Set the default list of columns which are affected byCOMMENT
LOWastropy/extern/ply/yacc.py2516 # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) itemsSTRING
Structural Annotation Overuse2 hits · 2 pts
SeverityFileLineSnippetContext
LOWastropy/io/ascii/core.py881 # Step 1: Set the default list of columns which are affected byCOMMENT
LOWastropy/extern/ply/yacc.py2516 # Step 1: Construct C = { I0, I1, ... IN}, collection of LR(0) itemsSTRING
Slop Phrases1 hit · 0 pts
SeverityFileLineSnippetContext
LOWastropy/extern/ply/yacc.py3084 # Sort all of the actions by line number; make sure to stringifySTRING