From b37f3d5d2160c34127e7824606087dc63df21f4a Mon Sep 17 00:00:00 2001 From: islent Date: Mon, 13 Dec 2021 13:50:04 +0800 Subject: [PATCH] fix unitless read_gadget2-pos --- Project.toml | 28 ++++++++++++++-------------- src/Gadget.jl | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Project.toml b/Project.toml index bdc0695..07f9810 100644 --- a/Project.toml +++ b/Project.toml @@ -22,17 +22,17 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" UnitfulAstro = "6112ee07-acf9-5e0f-b108-d242c714bf9f" [compat] -BangBang = "0.3" -CSV = "0.9" -FileIO = "1" -HDF5 = "0.15" -IterTools = "1.3" -JLD2 = "0.4" -PhysicalParticles = "1" -ProgressMeter = "1" -Reexport = "1" -StaticArrays = "1" -StructArrays = "0.6" -Unitful = "1" -UnitfulAstro = "1" -julia = "1.6" +BangBang = "≥ 0.3" +CSV = "≥ 0.9" +FileIO = "≥ 1" +HDF5 = "≥ 0.15" +IterTools = "≥ 1.3" +JLD2 = "≥ 0.4" +PhysicalParticles = "≥ 1" +ProgressMeter = "≥ 1" +Reexport = "≥ 1" +StaticArrays = "≥ 1" +StructArrays = "≥ 0.6" +Unitful = "≥ 1" +UnitfulAstro = "≥ 1" +julia = "≥ 1.6" diff --git a/src/Gadget.jl b/src/Gadget.jl index 6abaf4c..d319c71 100644 --- a/src/Gadget.jl +++ b/src/Gadget.jl @@ -453,7 +453,7 @@ function read_gadget2_pos_kernel(f::Union{IOStream,Stream{format"Gadget2"}}, hea NumTotal = sum(header.npart) if isnothing(units) - uLength = 1.0 + uLength = nothing fileuLength = 1.0 else uLength = getuLength(units)