From e8327df8595c863d0abdf6a02fdc9ff9dcae6f1f Mon Sep 17 00:00:00 2001 From: Rudraksh Nalbalwar Date: Sat, 16 Mar 2024 00:14:14 +0530 Subject: [PATCH 1/3] path replace bug and updated mailmap --- .mailmap | 2 + benchmarks/Untitled.ipynb | 90 ++++++++++++++++++++++++++++++ benchmarks/benchmark_run_tardis.py | 6 +- tardis/io/atom_data/util.py | 20 ++++--- tox.ini | 2 +- 5 files changed, 109 insertions(+), 11 deletions(-) create mode 100644 benchmarks/Untitled.ipynb diff --git a/.mailmap b/.mailmap index 77a23a6afca..6baefb7b027 100644 --- a/.mailmap +++ b/.mailmap @@ -263,3 +263,5 @@ Sarthak Srivastava Sarthak Srivastava kimsina Kim Lingemann kim + +Rudraksh Nalbalwar rudrakshnalbalwar diff --git a/benchmarks/Untitled.ipynb b/benchmarks/Untitled.ipynb new file mode 100644 index 00000000000..afac2686aa8 --- /dev/null +++ b/benchmarks/Untitled.ipynb @@ -0,0 +1,90 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "666033ca-d3a6-4db5-87f0-f16cc29a7697", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "631fdefc0f0f461389c0bfa714912d9f", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Iterations: 0/? [00:00 Date: Sat, 16 Mar 2024 00:25:58 +0530 Subject: [PATCH 2/3] Delete benchmarks/Untitled.ipynb --- benchmarks/Untitled.ipynb | 90 --------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 benchmarks/Untitled.ipynb diff --git a/benchmarks/Untitled.ipynb b/benchmarks/Untitled.ipynb deleted file mode 100644 index afac2686aa8..00000000000 --- a/benchmarks/Untitled.ipynb +++ /dev/null @@ -1,90 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "id": "666033ca-d3a6-4db5-87f0-f16cc29a7697", - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "631fdefc0f0f461389c0bfa714912d9f", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "Iterations: 0/? [00:00 Date: Sun, 17 Mar 2024 00:59:40 +0530 Subject: [PATCH 3/3] Delete benchmarks/benchmark_run_tardis.py --- benchmarks/benchmark_run_tardis.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 benchmarks/benchmark_run_tardis.py diff --git a/benchmarks/benchmark_run_tardis.py b/benchmarks/benchmark_run_tardis.py deleted file mode 100644 index 14fd32dc248..00000000000 --- a/benchmarks/benchmark_run_tardis.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Basic TARDIS Benchmark.""" -import os -from tardis.io.configuration.config_reader import Configuration -from tardis import run_tardis - -class TestBenchmarkruntardis: - """Class to benchmark the run_tardis function. - """ - timeout = 200 - - def setup(self): - filename = "tardis_configv1_benchmark.yml" - dir_path = os.path.dirname(os.path.realpath(__file__)) - path = os.path.join(dir_path, "data", filename) - config = Configuration.from_yaml(path) - config.atom_data = "/home/rudraksh-nalbalwar/Downloads/tardis-data/kurucz_cd23_chianti_H_He.h5" - self.config = config - - def test_run_tardis(self): - sim = run_tardis(self.config, log_level="ERROR", show_progress_bars=False)