AI Slop Code RIsk Monitor

astropy/astropy

Astronomy and astrophysics core library

14.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for astropy/astropy, a Python project with 5,332 GitHub stars. SynthScan examined 549,474 lines of code across 1255 source files, recording 6489 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 14.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.8
Adjusted Signal
14.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
5.3K
Stars
Python
Language
549.5K
Lines of Code
1.3K
Files
6.5K
Pattern Hits
2026-10-12
Scan Date
0.23
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 33.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 4630 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.5/100 · LOW

Are imports declared and package/API names verified? 739 finding(s).

Agent Over-Engineering Ratio 41.2/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 4632 finding(s).

PR Review Velocity Impact 56.3/100 · HIGH

Which changes need focused human review? 6489 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 291MEDIUM 574LOW 5624

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6489 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers3420 hits · 3107 pts
SeverityFileLineSnippetContext
LOWdocs/conftest.py27def _session_level_config_dir(tmp_path_factory):CODE
LOWdocs/conftest.py53def _deterministic_terminal_size():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/conftest.py215def _deterministic_terminal_size():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
LOW⚡astropy/visualization/tests/test_interval.py67 def test_asymmetric_percentile(self):CODE
LOW⚡astropy/visualization/tests/test_interval.py73 def test_asymmetric_percentile_nsamples(self):CODE
LOW⚡astropy/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.py844 def set_axislabel_visibility_rule(self, rule):CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py896 def get_axislabel_visibility_rule(self, rule):CODE
LOWastropy/visualization/wcsaxes/_auto.py8def auto_assign_coord_positions(ax):CODE
LOWastropy/visualization/wcsaxes/core.py556 def _update_tick_and_label_positions(self, keep_coord_range=False):CODE
LOWastropy/visualization/wcsaxes/core.py852 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.py135def transform_coord_meta_from_wcs(wcs, frame_class, slices=None):CODE
LOWastropy/visualization/wcsaxes/wcsapi.py332def 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.py47def test_format_coord_regression(ignore_matplotlibrc, tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py112def test_invalid_frame_overlay(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py123def test_plot_coord_transform(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py138def test_scatter_coord_transform(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py153def test_set_label_properties(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py254def test_grid_type_contours_transform(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py302def test_grid_contour_large_spacing(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py363def test_invalid_slices_errors(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py519def test_simplify_labels_minus_sign(CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py548def test_set_labels_with_coords(ignore_matplotlibrc, frame_class):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py600def test_wcs_type_transform_regression():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py611def test_multiple_draws_grid_contours(tmp_path):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py619def test_get_coord_range_nan_regression():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py692def test_get_axislabel_default():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py794def test_simplify_labels_prefix(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py807def test_get_transform_unit_mismatch():CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py843def test_get_coords_overlay_wcs_honors_coord_meta(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py865def test_get_coords_overlay_elliptical_frame(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py887def test_reset_wcs_resets_display_coords_index(ignore_matplotlibrc):CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py919def test_auto_assign_coord_positions_no_consistent_option(CODE
LOWastropy/visualization/wcsaxes/tests/test_misc.py477def test_simplify_labels_usetex(ignore_matplotlibrc, tmp_path):STRING
LOWastropy/visualization/wcsaxes/tests/test_images.py196 def test_overlay_features_image(self):CODE
3360 more matches not shown…
Decorative Section Separators412 hits · 1053 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.py35# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/core.py83 # =========================================================================COMMENT
MEDIUMastropy/io/registry/core.py249# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/core.py264 # =========================================================================COMMENT
MEDIUMastropy/io/registry/core.py396# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/base.py18# -----------------------------------------------------------------------------COMMENT
MEDIUMastropy/io/registry/base.py210 # =========================================================================COMMENT
MEDIUMastropy/io/registry/base.py327 # =========================================================================COMMENT
MEDIUM⚡astropy/io/registry/tests/test_registries.py200 # -----------------------COMMENT
MEDIUM⚡astropy/io/registry/tests/test_registries.py511 # -----------------------COMMENT
MEDIUM⚡astropy/io/registry/tests/test_registries.py530 # -----------------------COMMENT
MEDIUM⚡astropy/io/registry/tests/test_registries.py903 # -----------------------COMMENT
MEDIUM⚡astropy/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
MEDIUM⚡astropy/time/tests/test_parse_times_extension.py72# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡astropy/time/tests/test_parse_times_extension.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡astropy/time/tests/test_parse_times_extension.py95# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡astropy/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.py333 # -----------COMMENT
MEDIUMastropy/cosmology/_src/units_equivalencies.py341# ===================================================================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…
Empty Error Handlers115 hits · 575 pts
SeverityFileLineSnippetContext
HIGHdocs/conf.py281except Exception:CODE
HIGHastropy/conftest.py146except ImportError:CODE
HIGHastropy/version.py31except Exception:CODE
HIGHastropy/logger.py156except Exception:CODE
HIGHastropy/visualization/scripts/fits2bitmap.py86except ValueError:CODE
HIGHastropy/visualization/wcsaxes/__init__.py11except ImportError:CODE
HIGHastropy/coordinates/sky_coordinate.py510except Exception:CODE
HIGHastropy/coordinates/baseframe.py1426except Exception:CODE
HIGHastropy/coordinates/sky_coordinate_parsers.py377except ValueError:CODE
HIGHastropy/config/_tempfile_shim.py46except AttributeError:CODE
HIGHastropy/config/_tempfile_shim.py128except FileNotFoundError:CODE
HIGHastropy/config/tests/test_configs.py902except Exception:CODE
HIGHastropy/wcs/wcs.py1021except KeyError:CODE
HIGHastropy/wcs/wcs.py625except NoWcsKeywordsFoundError:CODE
HIGHastropy/wcs/wcs.py3978except NameError:CODE
HIGHastropy/wcs/wcs.py621except ValueError:CODE
HIGHastropy/wcs/tests/test_wcsprm.py884except (RuntimeError, ValueError):CODE
HIGHastropy/io/misc/pandas/connect.py63except TypeError: # skip invalid argumentsCODE
HIGHastropy/io/ascii/ecsv.py426except AttributeError:CODE
HIGHastropy/io/ascii/ui.py132except Exception:CODE
HIGHastropy/io/ascii/ui.py413except Exception:CODE
HIGHastropy/io/ascii/core.py1075except TypeError:CODE
HIGHastropy/io/ascii/mesa.py109except ValueError:CODE
HIGHastropy/io/ascii/tests/test_c_reader.py63except (TypeError, NotImplementedError):CODE
HIGHastropy/io/ascii/tests/test_read.py1131except ImportError:CODE
HIGHastropy/io/fits/util.py591except TypeError:CODE
HIGHastropy/io/fits/util.py833except AttributeError: # can occur for non-contiguous arraysCODE
HIGHastropy/io/fits/fitstime.py359except ValueError:CODE
HIGHastropy/io/fits/fitsrec.py576except AttributeError:CODE
HIGHastropy/io/fits/fitsrec.py727except (AttributeError, TypeError): # pragma: no coverCODE
HIGHastropy/io/fits/column.py900except KeyError:CODE
HIGHastropy/io/fits/column.py1190except (TypeError, ValueError):CODE
HIGHastropy/io/fits/hdu/image.py818except AttributeError: # strict_memmap not setCODE
HIGHastropy/io/fits/hdu/image.py409except KeyError:CODE
HIGHastropy/io/fits/scripts/fitsheader.py511except OSError:CODE
HIGHastropy/io/fits/scripts/fitsheader.py260except ExtensionNotFoundException:CODE
HIGHastropy/io/registry/tests/test_registries.py1241except Exception:CODE
HIGHastropy/io/registry/tests/test_registries.py248except Exception:CODE
HIGHastropy/io/registry/tests/test_registries.py283except Exception:CODE
HIGHastropy/io/registry/tests/test_registries.py708except Exception:CODE
HIGHastropy/io/registry/tests/test_registries.py1062except Exception:CODE
HIGHastropy/io/votable/tree.py1208except ValueError as ex:CODE
HIGHastropy/io/votable/table.py428except AttributeError:CODE
HIGHastropy/tests/runner.py123except Exception:CODE
HIGHastropy/utils/console.py163except UnicodeEncodeError:CODE
HIGHastropy/utils/data_info.py512except (TypeError, IndexError):CODE
HIGHastropy/utils/data_info.py583except AttributeError:CODE
HIGHastropy/utils/data.py98except Exception:CODE
HIGHastropy/utils/data.py108except Exception:CODE
HIGHastropy/utils/data.py2182except FileNotFoundError:CODE
HIGHastropy/utils/data.py2204except FileExistsError:CODE
HIGHastropy/utils/data.py2276except FileExistsError:CODE
HIGHastropy/utils/data.py1885except OSError:CODE
HIGHastropy/utils/data.py1892except OSError:CODE
HIGHastropy/utils/tests/test_data.py1915except PermissionError:CODE
HIGHastropy/utils/iers/iers.py308except Exception:CODE
HIGHastropy/nddata/compat.py149except AttributeError:CODE
HIGHastropy/modeling/core.py4310except (AttributeError, TypeError):CODE
HIGHastropy/modeling/core.py4314except (AttributeError, TypeError):CODE
HIGHastropy/modeling/core.py1415except AttributeError:CODE
55 more matches not shown…
Unused Imports655 hits · 572 pts
SeverityFileLineSnippetContext
LOW.pyinstaller/run_astropy_tests.py5CODE
LOW.pyinstaller/run_astropy_tests.py9CODE
LOWdocs/conf.py100CODE
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
595 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 Nesting544 hits · 464 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py301CODE
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.py984CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py1141CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py294CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py365CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py385CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py441CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py650CODE
LOWastropy/visualization/wcsaxes/_auto.py8CODE
LOWastropy/visualization/wcsaxes/core.py303CODE
LOWastropy/visualization/wcsaxes/core.py852CODE
LOWastropy/visualization/wcsaxes/core.py966CODE
LOWastropy/visualization/wcsaxes/axislabels.py61CODE
LOWastropy/visualization/wcsaxes/coordinate_range.py23CODE
LOWastropy/visualization/wcsaxes/ticklabels.py153CODE
LOWastropy/visualization/wcsaxes/ticklabels.py222CODE
LOWastropy/visualization/wcsaxes/coordinates_map.py46CODE
LOWastropy/visualization/wcsaxes/wcsapi.py135CODE
LOWastropy/visualization/wcsaxes/tests/test_wcsapi.py96CODE
LOWastropy/timeseries/downsample.py91CODE
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.py217CODE
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
484 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
HIGH⚡astropy/wcs/docstrings.py172of a target body used in projection (m). If undefined, this is set to `None`.CODE
HIGH⚡astropy/wcs/docstrings.py177If undefined, this is set to `None`.CODE
HIGH⚡astropy/wcs/docstrings.py183If undefined, this is set to `None`.CODE
HIGH⚡astropy/wcs/docstrings.py188of the target body (deg). If undefined, this is set to `None`.CODE
HIGH⚡astropy/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.py918 "{""b"":[2.5,null]}"STRING
HIGHastropy/io/misc/ecsv.py968 [[6.0,7.0],[8.0,null],[10.0,11.0]]STRING
HIGHastropy/io/misc/ecsv.py989 # like "[[null, null],[null,null]]" so subsequent JSONCOMMENT
HIGHastropy/io/misc/ecsv.py1030 # - {name: array_var, datatype: string, subtype: 'int64[null]'}STRING
HIGHastropy/io/misc/ecsv.py1034 [3,4,5,null,7]STRING
HIGHastropy/io/ascii/ipac.py215 self.data.fill_values.append((null, fillval, col.name))CODE
HIGH⚡astropy/io/ascii/ipac.py296 nullist.append((format_func(col_format, null)).strip())CODE
HIGH⚡astropy/io/ascii/ipac.py302 nullist.append(str(null).strip())CODE
HIGHastropy/io/ascii/ecsv.py261 # Subtype is written like "int64[2,null]" and we want to split thisCOMMENT
HIGHastropy/io/ascii/ecsv.py367 # 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
HIGH⚡astropy/io/ascii/tests/test_ecsv.py1251 # - {name: v, datatype: string, subtype: 'int64[null]'}COMMENT
HIGHastropy/io/ascii/tests/test_ecsv.py1216# - {name: v, datatype: string, subtype: 'int64[null]'}COMMENT
HIGH⚡astropy/io/ascii/tests/test_ecsv.py1254 [1,null] [1,null]CODE
HIGH⚡astropy/io/ascii/tests/test_ecsv.py1255 [null,4] [null,4,5]CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1046 "subtype": "float32[2,null]",CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1061 {"datatype": "string", "name": "1-d variable array numpy", "subtype": "uint8[null]"}CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1071 "subtype": "string[null]",CODE
HIGHastropy/io/ascii/tests/test_ecsv.py1082 "subtype": "bool[null]",CODE
HIGH⚡astropy/io/ascii/tests/test_fixedwidth.py97|| Name || Phone || TCP||CODE
HIGHastropy/io/fits/util.py843 # i-th character is 0 (null) and the i-1-th is 32 (space) and repeat.COMMENT
HIGHastropy/io/fits/fitsrec.py411 # (undefined); a column created without data should insteadCOMMENT
HIGHastropy/io/fits/fitsrec.py928 "(undefined) values which will be converted to False. To "CODE
HIGHastropy/io/fits/fitsrec.py994 nullval = str(column.null).strip().encode("ascii")CODE
HIGHastropy/io/fits/fitsrec.py1150 f"Column '{column.name}' contains NULL (undefined) values "CODE
HIGH⚡astropy/io/fits/column.py1101 null = str(null)CODE
HIGH⚡astropy/io/fits/column.py1102 if len(null) > format.width:CODE
HIGH⚡astropy/io/fits/column.py1111 if not _is_int(null):CODE
HIGHastropy/io/fits/column.py1139 invalid["null"] = (null, msg)CODE
HIGH⚡astropy/io/votable/tree.py1005 def null(self, null):CODE
HIGH⚡astropy/io/votable/tree.py1006 if null is not None and isinstance(null, str):CODE
HIGH⚡astropy/io/votable/tree.py1009 null, self._config, self._posCODE
HIGH⚡astropy/io/votable/tree.py1012 warn_or_raise(W36, W36, null, self._config, self._pos)CODE
HIGHastropy/io/votable/converters.py709 self.null = np.asarray(field.values.null, dtype=self.format)CODE
HIGHastropy/io/votable/converters.py737 self._fast_null_param = float(self.null)CODE
HIGHastropy/io/votable/converters.py773 self._null_output = self.output(np.asarray(self.null), False)CODE
HIGHastropy/io/votable/converters.py774 self._null_binoutput = self.binoutput(np.asarray(self.null), False)CODE
HIGHastropy/io/votable/converters.py787 return self.null, TrueCODE
HIGHastropy/io/votable/converters.py800 return self.null, TrueCODE
HIGHastropy/io/votable/converters.py838 return np.where(mask, self.null, value)CODE
HIGHastropy/io/votable/converters.py876 self._fast_null_param = int(self.null)CODE
HIGHastropy/io/votable/converters.py927 return str(self.null)CODE
HIGHastropy/io/votable/converters.py943 return np.where(mask, self.null, value)CODE
HIGH⚡astropy/io/votable/tests/test_converter.py129 assert c.parse("") == (c.null, True)CODE
4 more matches not shown…
Self-Referential Comments142 hits · 368 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.py1040 # 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.py51 # Create a representation objectCOMMENT
MEDIUM⚡astropy/visualization/wcsaxes/tests/test_grid_paths.py37 # Create a grid line of constant latitude with a point every stepCOMMENT
MEDIUM⚡astropy/visualization/wcsaxes/tests/test_grid_paths.py40 # 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.py1633 # Create a SkyCoord where obsgeoloc tags along as an extra attributeCOMMENT
MEDIUMastropy/coordinates/tests/test_sky_coord.py2052 # Define a frame with multiple aliasesSTRING
MEDIUMastropy/coordinates/tests/test_frames.py947 # 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.py498 # Create a pyarrow table from the list of arrays and the schemaCOMMENT
MEDIUMastropy/io/misc/parquet.py699 # Create an empty Astropy table inheriting all the column metadataCOMMENT
MEDIUMastropy/io/misc/ecsv.py1237 # 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.py215 # 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.py995# Define a number of specialized columns for testing and the expected valuesCOMMENT
MEDIUMastropy/io/ascii/tests/test_ecsv.py1323 # 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.py260 # Create a compressed FITS fileCOMMENT
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py405 # Create a compressed version of the scaled imageCOMMENT
MEDIUM⚡astropy/io/fits/hdu/compressed/tests/test_compressed.py1570 # Create a PrimaryHDU with some dataSTRING
MEDIUM⚡astropy/io/fits/hdu/compressed/tests/test_compressed.py1573 # Create a CompImageHDU using the PrimaryHDU's headerSTRING
MEDIUMastropy/io/fits/hdu/compressed/tests/test_compressed.py1533 # Create a CompImageHDU using a PrimaryHDU's headerSTRING
82 more matches not shown…
Modern Structural Boilerplate259 hits · 258 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py47logger = 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.py26__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.py18__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
199 more matches not shown…
Over-Commented Block275 hits · 254 pts
SeverityFileLineSnippetContext
LOWpyproject.toml941 # via latexCOMMENT
LOWtox.ini41 # * disable uv.no-build-package: allow source installs for every packageCOMMENT
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# We only use a very small subset of fitsio2.h, so here we generate 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
215 more matches not shown…
Excessive Try-Catch Wrapping222 hits · 210 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py281 except Exception:CODE
LOWdocs/conf.py325 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.py311 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.py250 except Exception:CODE
MEDIUMastropy/coordinates/polarization.py247def __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.py684 except Exception:STRING
LOWastropy/config/paths.py690 except Exception:STRING
LOWastropy/config/paths.py770 except Exception:CODE
LOWastropy/config/paths.py779 except Exception:CODE
LOWastropy/config/tests/test_configs.py902 except Exception:CODE
LOWastropy/wcs/wcs.py1688 except Exception:STRING
LOWastropy/wcs/wcs.py1703 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.py893 except Exception as exc:CODE
LOWastropy/io/ascii/ipac.py110 except Exception:CODE
LOWastropy/io/ascii/ipac.py113 except Exception:CODE
LOW⚡astropy/io/ascii/ipac.py297 except Exception:CODE
LOWastropy/io/ascii/ecsv.py416 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
162 more matches not shown…
AI Slop Vocabulary72 hits · 113 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.py143 # 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.py2073 # simply return initial approximation:STRING
LOW⚡astropy/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.c2441 // 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.py584 # 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.py408 # 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.py530 # data, we can just use thisCOMMENT
LOWastropy/io/fits/hdu/compressed/_tiled_compression.py679 # For now, we just use the default ZBLANK value and assumeCOMMENT
LOWastropy/io/fits/hdu/compressed/_quantization.py72 # For NO_DITHER we should just use the scale and zero directlyCOMMENT
LOWastropy/io/fits/tests/test_image.py838 # Let's just add a value to the data that should be converted to NaNCOMMENT
LOWastropy/utils/shapes.py384 # For np.shape, etc., just return the attribute.COMMENT
LOWastropy/utils/shapes.py387 # 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.py1080 # not called from inside an astropy package. So just pass nameCOMMENT
LOWastropy/utils/data.py1830 # 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.py1748 # don't want to convert the parameter, just add the unit directly,COMMENT
LOWastropy/modeling/core.py1997 # 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.py19# 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.py975 # could just use np.ma.is_masked(value).COMMENT
LOWastropy/units/quantity.py1955 # function is in none of the above, we simply call the numpyCOMMENT
LOWastropy/units/quantity.py812 # For given Quantity output, just set the unit. We know the unitSTRING
LOWastropy/units/tests/test_quantity_erfa_ufuncs.py485 # Sadly does not just use the values from above.COMMENT
LOWastropy/units/function/logarithmic.py268 # anything else we can just pass on.COMMENT
LOWastropy/units/function/core.py689 # And really it should just return NotImplemented, since possiblyCOMMENT
LOWastropy/units/quantity_helper/helpers.py255 # if first arg is not a quantity, just return plain arrayCOMMENT
LOWastropy/table/serialize.py235 # just add to new_cols and all we have to do is to link to the new name.COMMENT
LOWastropy/table/serialize.py328 # If no metadata was created then just return the original table.COMMENT
MEDIUMastropy/table/table.py1490 # sequence. This function is relatively intricate and tries toCOMMENT
12 more matches not shown…
Redundant / Tautological Comments70 hits · 96 pts
SeverityFileLineSnippetContext
LOWastropy/visualization/wcsaxes/_auto.py92 # Check if option is consistent with any fixed tick positions - thatCOMMENT
LOWastropy/visualization/wcsaxes/core.py485 # 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.py3064 # 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.py1221 # 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.py174 # Check if output file already existsCOMMENT
LOWastropy/io/votable/converters.py322 # Check if this is a bounded variable-length fieldCOMMENT
LOWastropy/io/votable/converters.py441 # Check if this is a bounded variable-length fieldCOMMENT
LOWastropy/io/votable/converters.py1518 # Check if we have stored the original arraysize with boundsCOMMENT
LOWastropy/utils/data.py399 # 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.py380 # 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.py3116 # 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.py75 # Set scale to TAICOMMENT
LOWastropy/time/tests/test_mask.py188 # Assign value to unmask, though the instance stays masked.COMMENT
LOWastropy/units/core.py567 # Check if we have cached this -- we do this only with simpleSTRING
LOWastropy/units/quantity_helper/converters.py71 # Check if it was loaded while we waited for the lockCOMMENT
LOWastropy/table/_dataframes.py134 # Check if pandas-like or pyarrow-likeCOMMENT
LOWastropy/table/_dataframes.py158 # Check if pandas-like, PANDAS_LIKE is reserved for pandas itselfCOMMENT
10 more matches not shown…
AI Structural Patterns92 hits · 78 pts
SeverityFileLineSnippetContext
LOWastropy/visualization/mpl_normalize.py467CODE
LOWastropy/visualization/mpl_normalize.py323CODE
LOWastropy/visualization/scripts/fits2bitmap.py12CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py83CODE
LOWastropy/visualization/wcsaxes/coordinate_helpers.py536CODE
LOWastropy/visualization/wcsaxes/formatter_locator.py207CODE
LOWastropy/visualization/wcsaxes/ticklabels.py76CODE
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.py518CODE
LOWastropy/utils/data_info.py728CODE
LOWastropy/utils/data.py210CODE
LOWastropy/utils/data.py1350CODE
LOWastropy/utils/data.py1459CODE
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.py1346CODE
LOWastropy/modeling/fitting.py1705CODE
LOWastropy/modeling/polynomial.py238CODE
LOWastropy/modeling/polynomial.py746CODE
LOWastropy/modeling/polynomial.py1137CODE
LOWastropy/modeling/polynomial.py1402CODE
LOWastropy/modeling/polynomial.py1557CODE
32 more matches not shown…
Fake / Example Data20 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡astropy/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.py861 ID = "dummy_id"CODE
LOWastropy/io/votable/tests/test_table.py873 assert "dummy_id" in err_msgCODE
LOWastropy/io/votable/tests/test_table.py883 ID = "dummy_id"CODE
LOWastropy/io/votable/tests/test_table.py895 assert "dummy_id" in err_msgCODE
LOW⚡astropy/modeling/tests/test_quantities_fitting.py296 fake_data = comb(e)CODE
LOW⚡astropy/modeling/tests/test_quantities_fitting.py298 res = fit(comb, e, fake_data)CODE
LOW⚡astropy/modeling/tests/test_quantities_fitting.py304 fake_data = comb(e)CODE
LOW⚡astropy/modeling/tests/test_quantities_fitting.py306 res = fit(comb, e, fake_data)CODE
LOW⚡astropy/units/quantity_helper/function_helpers.py1313 fake_name = "_" * len(cls_name)CODE
LOW⚡astropy/units/quantity_helper/function_helpers.py1314 fake_cls = type(fake_name, (np.ndarray,), {})CODE
LOW⚡astropy/units/quantity_helper/function_helpers.py1316 fake_name, cls_nameCODE
LOW⚡astropy/convolution/tests/test_convolve_models.py91 fake_data = fake_model(x) + np.random.normal(size=len(x))CODE
LOW⚡astropy/convolution/tests/test_convolve_models.py95 fitted_model = fitter(init_model, x, fake_data)CODE
LOW⚡astropy/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.py1268 # TODO: implement this at the ufunc level.COMMENT
LOWastropy/units/tests/test_logarithmic.py1182 # 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
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpyproject.toml44# When adding a dependency here, make sure to preserve alphabetical sortingCOMMENT
LOWastropy/extern/ply/yacc.py3084 # Sort all of the actions by line number; make sure to stringifySTRING
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