From patchwork Fri Feb 21 21:49:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 38963 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 155B827BBEB; Fri, 21 Feb 2025 21:55:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A66DC27BBE2 for ; Fri, 21 Feb 2025 21:55:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tlayU-0003tV-Pf; Fri, 21 Feb 2025 16:54:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlayR-0003rO-D9 for guix-patches@gnu.org; Fri, 21 Feb 2025 16:54:19 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tlayR-0000OH-4Q for guix-patches@gnu.org; Fri, 21 Feb 2025 16:54:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Bsn4d/18VlAPCrB88l7XxfMr4VcGr6c/GLw5UtALlmI=; b=FuolFnWoDCkWSeRjQ2glPQGRsw1+J5FmJgXKs9ULryUcpHSLwjiY27EhbaNmnAzSloJlbL2Qee8XXoWpqSa0B0X3RpCXbJlEKgnfc1T/KCibr0sLlTo22lA5V6wd5OTmH4iOWd4rtjY3EyKh347quqDDWKn6oNc52dfUAbHLgxPxyj2jwmSfcMH+ggXNHZLE971XD2BN4MHWnJ9ZRhsVIBQprZSOBVT7k7HGXa9bXXEM8fY92uFCzxVfgvO3PM1qdudi326IXosnUKAKk8sz2zEM7KGlHQUZP/n7PP/kRlzYibMNXC86C2FGQXiF5XEE5fJ+Abr7bm8/KhBF2mHLSA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tlayQ-0004tB-Db; Fri, 21 Feb 2025 16:54:18 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76480] [PATCH 47/51] gnu: Add python-astrocut. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 21 Feb 2025 21:54:18 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76480 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76480@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 76480-submit@debbugs.gnu.org id=B76480.174017481718334 (code B ref 76480); Fri, 21 Feb 2025 21:54:18 +0000 Received: (at 76480) by debbugs.gnu.org; 21 Feb 2025 21:53:37 +0000 Received: from localhost ([127.0.0.1]:38716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlaxk-0004lV-1B for submit@debbugs.gnu.org; Fri, 21 Feb 2025 16:53:36 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:60752) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tlav1-0004Hs-8g for 76480@debbugs.gnu.org; Fri, 21 Feb 2025 16:50:57 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4398ec2abc2so22605205e9.1 for <76480@debbugs.gnu.org>; Fri, 21 Feb 2025 13:50:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740174641; x=1740779441; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bsn4d/18VlAPCrB88l7XxfMr4VcGr6c/GLw5UtALlmI=; b=HnAVFAV/09RCqtzFJeUYNeHCmJr0nA/FkaOAW6HmdSpCHAHKQuf1ylugZFZGKnryKx BwBGwo2o5QarFF3dSu1seYrZo1jYiKq0um0pc1yrmj6UGeV4RUll30thlHZwOgVfKuNe 1r8vPPuYG0j369BBwW6xET3nj6RcqRUJUGy60EBJ9NRmufFc+UJN2YmKJID2+gkJIDTv /zQ3LpWh2iF9XzetdnnHEPb8HRX27q2dq9erloRW/cQCIc4IdAtyMFPuSz+a2Y8893r6 IwvamIA7V6zWYtsd9bIpYB9FvkI+xl9Fm3iSUWDpo5bD5XtrSA+WWswW2w8VtqGjs7vk b2sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740174641; x=1740779441; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Bsn4d/18VlAPCrB88l7XxfMr4VcGr6c/GLw5UtALlmI=; b=ce1h3Arp+2m/xgssYb3xtgDhTWFmYQsQ8oj+YtXlCk4rmcDDt4c+CUSYFbFXCgrmZ2 +SWDjZz0K4uEnj+lYcULnzi1A6x5UVYETCEa25lnAQRNXOjeeF3nWzr/A32PRIS4sSbV AQDsOa4zc2Gnb9taM4XrCpp8roPsa+Kl0jALUtZaNLL0PaO1eKDrTcSwbll2jkwlBJMP iGr5L/Z9fK4U6VrhNYEXHgWKvQBobxR31B0zHnhgfgi/BhCDNCigVSMzYGGXyOmhIscU kPENQF+fBTzD/+W0cqTGCyYKlhiiwwQSrTsJCYpUo9C5Z2qN+X7Ks/hqAylO3mh+95RJ WRtg== X-Gm-Message-State: AOJu0YzFM7KJyRXzItecNXRR8m3Cwm/5FYW3wlhq5YUyZaCHrWACdPVd KZ6u345l6G1qEzbZdWGCCi2seljVF5fJWl1csQcH1IdQ+CPHoOoA9opolg== X-Gm-Gg: ASbGnct8eIA+cuYL5Nix3Cl8w3TR3g75t/Jw8di3cNwRe68OhqePQToOEi/RDsFvhiS Gj2vNbjiiZ3+ZopiGMCK4q2r91+zRZus298cZrRwmP54Bd/OM5zCDFLdpDrKMul6s7R2aogroEJ CBeS7Z3STAVbvtI+73oGKhisIO1L1qGO6c184EOthkd2AvcMlHIgP2sFlEtVgBE/1LDCU1SZLmJ lcVXJ291nAQgnRBakhH56bOphD/XfzfxSbZKapMEWRB2/SfKnLzSP1LTMsYWVR7L47DqLWeJKEj 2UsbYuq6JA/ZY0KnL9T1GaF2Yf0fQX545dnZzPtNZNZMPaosYb64xJyEWr0aKHmui79Q+pQJku9 5Ml6yZIK7ZHaG1OuUOw== X-Google-Smtp-Source: AGHT+IHc0iNnri7vPyiwNS5oYAkVTiIruEpVWOSbpq2/O3pQFp1Cmxt12IGq/z4cPqZ/HPrUVAiv5g== X-Received: by 2002:a05:600c:3501:b0:439:6e12:fdb4 with SMTP id 5b1f17b1804b1-439ae1f16fbmr50992375e9.14.1740174640804; Fri, 21 Feb 2025 13:50:40 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399bea8577sm74601855e9.0.2025.02.21.13.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 13:50:40 -0800 (PST) From: Sharlatan Hellseher Date: Fri, 21 Feb 2025 21:49:41 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-astrocut): New variable. Change-Id: I507a512bd65742869aadc7e423cc3e2d1574a3ff --- gnu/packages/astronomy.scm | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index f2d21ab3404..2b7e0e8b5d7 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1882,6 +1882,81 @@ (define-public python-astroalign astronomical images, especially when there is no WCS information available.") (license license:expat))) +(define-public python-astrocut + (package + (name "python-astrocut") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "astrocut" version)) + (sha256 + (base32 "19smfpb3qbw9s065wx8n0xwg5x8pgj99641hr3lj71dnrfxfwa40")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-join + ;; Tests requiring network access. + (list "not test_cube_cut_from_footprint[SPOC]" + "test_cube_cut_from_footprint[TICA]" + "test_cube_cut_from_footprint_all_sequences" + "test_cube_cut_from_footprint_invalid_sequence" + "test_cube_cut_from_footprint_multi_sequence" + "test_cube_cut_from_footprint_outside_coords" + "test_fits_cut[SPOC]" + "test_fits_cut[TICA]" + "test_get_cutout_limits" + "test_get_cutout_wcs" + "test_multithreading" + "test_s3_cube_cut") + " and not ")) + #:phases + #~(modify-phases %standard-phases + ;; TODO: Report upstream: ModuleNotFoundError: No module named + ;; 'packagename'. + (add-after 'unpack 'fix-setup.cfg + (lambda _ + (substitute* "setup.cfg" + (("console_scripts =") "") + (("astropy-package-template-example.*") ""))))))) + (native-inputs + (list nss-certs-for-test + python-pytest + python-astroquery + python-pytest-astropy + python-setuptools + python-setuptools-scm + python-wheel)) + (propagated-inputs + (list python-asdf + python-astropy + python-cachetools + python-fsspec + python-pillow + python-requests-next + python-roman-datamodels + python-s3fs + python-s3path + python-scipy + python-spherical-geometry)) + (home-page "https://astrocut.readthedocs.io") + (synopsis "Cutout tools for astronomical images") + (description + "Astrocut provides tools for making cutouts from sets of astronomical +images with shared footprints. It is under active development. + +Three main areas of functionality are included: +@itemize +@item solving the specific problem of creating image cutouts from sectors of +@acronym{Transiting Exoplanet Survey Satellite, TESS} full-frame images +@item general fits file cutouts including from single images and sets of +images with the shared WCS/pixel scale +@item cutout post-processing functionality, including centering cutouts along +a path (for moving targets) and combining cutouts +@end itemize") + (license license:bsd-3))) + (define-public python-astrodendro (package (name "python-astrodendro")