From 87ed66ccae50d4f60e43cefe9df41cf55ca5ed0a Mon Sep 17 00:00:00 2001 From: Sylwester Arabas <sylwester.arabas@agh.edu.pl> Date: Sat, 11 Jan 2025 21:41:32 +0100 Subject: [PATCH 1/2] fix AeroDist ctor arg bug in README codes --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2f911743..4bcc2288 100644 --- a/README.md +++ b/README.md @@ -109,9 +109,7 @@ aero_dist = ppmc.AeroDist( "num_conc": 3200 / si.cm**3, "geom_mean_diam": 8.64 * si.nm, "log10_geom_std_dev": 0.28, - } - }, - { + }, "diesel": { "mass_frac": [{"OC": [0.3]}, {"BC": [0.7]}], "diam_type": "geometric", @@ -153,9 +151,7 @@ aero_dist = ppmc.AeroDist(aero_data, ( "num_conc" => 3200 / si.cm^3, "geom_mean_diam" => 8.64 * si.nm, "log10_geom_std_dev" => .28, - ) - ), - Dict( + ), "diesel" => Dict( "mass_frac" => (Dict("OC" => (.3,)), Dict("BC" => (.7,))), "diam_type" => "geometric", @@ -198,9 +194,7 @@ aero_dist = ppmc.AeroDist(aero_data, py.tuple({ ... "num_conc", 3200 / si.cm^3, ... "geom_mean_diam", 8.64 * si.nm, ... "log10_geom_std_dev", .28 ... - )) ... - )), ... - py.dict(pyargs( ... + )), ... "diesel", py.dict(pyargs( ... "mass_frac", py.tuple({ ... py.dict(pyargs("OC", py.tuple({.3}))), ... From 1b7603c1d4ca39262d77f48d8c5ea60bd1f94a32 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas <sylwester.arabas@agh.edu.pl> Date: Sat, 11 Jan 2025 22:17:53 +0100 Subject: [PATCH 2/2] missing comma --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bcc2288..47916a58 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ aero_dist = ppmc.AeroDist(aero_data, ( "geom_mean_diam" => 50 * si.nm, "log10_geom_std_dev" => .24, ) - ) + ), )) n_part = 100