From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eNtGBmNpdWPYKwAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 23:51:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yA9KBmNpdWN3tQAAauVa8A (envelope-from ) for ; Wed, 16 Nov 2022 23:51:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD0D212F9F for ; Wed, 16 Nov 2022 23:51:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovRFI-0001YZ-Od; Wed, 16 Nov 2022 17:51:04 -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 1ovRFG-0001YM-La for guix-patches@gnu.org; Wed, 16 Nov 2022 17:51:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovRFG-0001n9-B5 for guix-patches@gnu.org; Wed, 16 Nov 2022 17:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovRFG-0004Yi-0F for guix-patches@gnu.org; Wed, 16 Nov 2022 17:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59323] [PATCH] gnu: Add alfa Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Nov 2022 22:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59323 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59323@debbugs.gnu.org Cc: Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166863905317507 (code B ref -1); Wed, 16 Nov 2022 22:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2022 22:50:53 +0000 Received: from localhost ([127.0.0.1]:58422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovRF7-0004YJ-DM for submit@debbugs.gnu.org; Wed, 16 Nov 2022 17:50:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:56794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovRF4-0004YA-HB for submit@debbugs.gnu.org; Wed, 16 Nov 2022 17:50:51 -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 1ovRF4-0001Wa-AK for guix-patches@gnu.org; Wed, 16 Nov 2022 17:50:50 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovRF2-0001kK-0m for guix-patches@gnu.org; Wed, 16 Nov 2022 17:50:49 -0500 Received: by mail-wr1-x42c.google.com with SMTP id o4so32468959wrq.6 for ; Wed, 16 Nov 2022 14:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=745YKQ7Ex0lJ6b4oMp+HKim2ij6ZA6gb+XSc1FuWxos=; b=cZeO2UU/grI3VeONVwBmkPovLn5K8rqH/u40BG/rwYM8QVnu8g3L5NQ4a/BbEom0cQ XRhwruHiuN8pjiV//PAxvvjrIDP3uA8+M6su085x5J2/OK5TFO0NKjiXgzYhNtIL2h6V sc2actuz43PpO3MpMzURxQeWwD4GmfT+hTowVGtZHBhrc0BriCQ+YTkUGazZO2HWijM7 K0Ffiky3hW9fib5IZmCeG119Wjb5fhndKl7z4CxFXfGaJVtByyN48JHvNhiubfVxzFwo xvvPcRcvarxb4oVAcnWMeHskXEWqM5+3fxrR8aUp/Py8uaQkm8B+SWXxNv9izrDnqdVY jw0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=745YKQ7Ex0lJ6b4oMp+HKim2ij6ZA6gb+XSc1FuWxos=; b=NEjXcJBbq/KZJzrMzdRa1rblkdGS1fzIh/ctUSHUiSZUecQAG1Tk7YUrVD5KbgRjaJ 5hiK9Fxtk3L3AIjsiVh1wHbK2hQ2K8QvI0mpZ+1njafRzVd+0uwoP3AlylUE+XdoDOve ZDaBMbTU91ddNHA9qvQots4A5vTG5B7QPvUdrzgjzI9koBJVZVGzxE2/i4ZgHbH27hck FT3aJavdSSw1Bc6MDltvHMLZzSf/K6hkpcWY09ooCg89SbOWtOz8VOMlPyHGcYfjBIZZ ShCdxxDa7LcfcxHNfl+BZJjilL+Wv67yHGofWS6L88bx1ms+8xKB6Unr7Lcj8VQGq8Zi 9nCA== X-Gm-Message-State: ANoB5pnUkazBXLLYi7pulHn+ULr8yMmndFX4RJYlgyytcBWlB2Ftu5TA egsB9jKNT2aqV3Jf5MBJVTAp6NcERyo= X-Google-Smtp-Source: AA0mqf4zF55fX1cv1Zo9EOUIf/zCgXEXPX6weTrjmQav0kbsvKUnUaWJfRJeklkB6I9dS/DDL3sSAQ== X-Received: by 2002:a5d:6e0c:0:b0:236:5abb:590a with SMTP id h12-20020a5d6e0c000000b002365abb590amr14908043wrz.700.1668639045631; Wed, 16 Nov 2022 14:50:45 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id t11-20020a5d49cb000000b002383fc96509sm16021788wrs.47.2022.11.16.14.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 14:50:45 -0800 (PST) From: Sharlatan Hellseher Date: Wed, 16 Nov 2022 22:50:35 +0000 Message-Id: <20221116225035.12435-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=sharlatanus@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668639074; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=745YKQ7Ex0lJ6b4oMp+HKim2ij6ZA6gb+XSc1FuWxos=; b=XbQ2xhITI63WImb00ZK5IEElqjxLTq37YHef8LUZDJUwIbN5RF4EU6C9jkf+MDKgjAvRmS zrHA/AV/KrKngDfETxbR1AcMAxrowLBgtwwLM+0bJQE0iULbAugC+/T3cFZSLqhxXoCiTQ wO6N8OD3E6S2r5VypVMwdJIyK7UcP5nXahjidvy70hc/wY8jR58lMARZIgTUXlscrxsQf/ qJztTlgicNuUoeE9lmYWMqIhVRj9YpT1b9ZBAO8vcBOWFXwHGbjE+Sp3DW5AcSclKew0pu v/6a+OoiMs2xxsf0g1Jh+XHdooS5uMFCiMAYxUmDubc0E+TS+ypeC5tiZ0ETlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668639074; a=rsa-sha256; cv=none; b=nsPsXgpohY8KubWdcYneqhtWf9gMzWqm2Eqjz19zbxkW/+AWQuXIQzprHNyLXNsTZNeQei IsrFnR4CbO9/cbl34ZZzkF0u9rmZMGx/LRn6rEyWQzHvPbWiJ1jCdFR349za6EAacgi98H T6bOqHCUoSE3mKI59r8W4ksuRoEu9jB6vY5H2NgacKPUD1daqq0vjliMYjeWx9C7BGTs5M QtC7ijH6mCOILipa6e+tJTTMvRolxuhWgd4eIzzeuWSkAbMhleSIxFKTIKWfzxEEEDi3uu G+LDFeqMoasxQnDbJ9uJvmfwj9x5qzm07k8VFL0tAHnRnDUhReGKIn509f+4/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="cZeO2UU/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 8.76 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="cZeO2UU/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AD0D212F9F X-Spam-Score: 8.76 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: wla0c+Qq2Hia * gnu/packages/astronomy.scm (alfa): New variable. --- gnu/packages/astronomy.scm | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index bc31a12594..c5f0944219 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -86,6 +86,59 @@ (define-module (gnu packages astronomy) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public alfa + (package + (name "alfa") + (version "2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rwesson/ALFA") + (commit (string-append "v" version)))) + (sha256 + (base32 "0aqxqar36822mh373awsl79j7zn8vik4yddyydsxv0c76gn4i2k3")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list + #:parallel-build? #f + #:make-flags + #~(list (string-append "PREFIX=" #$output) + (string-append "VERSION=" #$version)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'install 'post-install-check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "fittest"))))))) + (inputs (list cfitsio gfortran)) + (home-page "https://nebulousresearch.org/codes/alfa/") + (synopsis "Automated Line Fitting Algorithm") + (description + "This package provides @acronym{ALFA, Automatic line fitting algorithm} +which can identify and fit hundreds of lines in emission line spectra in just a +few seconds with following features: +@itemize + +@item A population of synthetic spectra is generated using a reference line +catalogue. + +@item The goodness of fit for each synthetic spectrum is calculated. The best +sets of parameters are retained and the rest discarded. + +@item A new population of synthetic spectra is obtained by averaging pairs of +the best performers. + +@item A small fraction of the parameters of the lines in the new generation are +randomly altered. + +@item The process repeats until a good fit is obtained. +@end itemize") + (license license:gpl3+))) + (define-public aocommon (let ((commit "7329a075271edab8f6264db649e81e62b2b6ae5e") (revision "1")) -- 2.38.0