Skip to content

Commit

Permalink
fix: bug rounding and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleDelliVeneri committed Jul 16, 2024
1 parent b712092 commit 27a3880
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion almasim/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.6"
__version__ = "2.1.7"
2 changes: 1 addition & 1 deletion almasim/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@ def process_spectral_data(
min_delta_v = self.min_line_width_slider.value()
max_delta_v = self.max_line_width_slider.value()
delta_v = np.random.uniform(min_delta_v, max_delta_v) * U.km / U.s
self.terminal.add_log(f"Line Width: {round(delta_v, 2)}")
self.terminal.add_log(f"Line Width: {round(delta_v.value, 2)} Km/s")
c_km_s = c.to(U.km / U.s)
fwhms = (
0.084
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "almasim"
version = "2.1.6"
version = "2.1.7"
description = "An ALMA Simulation package for a more civilized era."
authors = ["Michele Delli Veneri <micheledelliveneri@gmail.com>"]
readme = "README.rst"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="almasim",
version="2.1.6",
version="2.1.7",
author="Michele Delli Veneri",
author_email="micheledelliveneri@gmail.com",
description="An ALMA Simulation package for a more civilized era.",
Expand Down

0 comments on commit 27a3880

Please sign in to comment.