From 6617319bacfce533d70637c40d0452bc5f4fad42 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Fri, 28 Apr 2023 17:38:19 -0400 Subject: [PATCH] Added new variables to pyton io --- python/swiftest/swiftest/io.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python/swiftest/swiftest/io.py b/python/swiftest/swiftest/io.py index 6a376d387..0c0007488 100644 --- a/python/swiftest/swiftest/io.py +++ b/python/swiftest/swiftest/io.py @@ -32,7 +32,8 @@ "ENCOUNTER_CHECK", "TSTART", "DUMP_CADENCE", - "ENCOUNTER_SAVE") + "ENCOUNTER_SAVE", + "COARRAY") # This list defines features that are booleans, so must be converted to/from string when writing/reading from file bool_param = ["RESTART", @@ -46,7 +47,8 @@ "ENERGY", "GR", "YARKOVSKY", - "YORP"] + "YORP", + "COARRAY"] int_param = ["ISTEP_OUT", "DUMP_CADENCE"] float_param = ["T0", "TSTART", "TSTOP", "DT", "CHK_RMIN", "CHK_RMAX", "CHK_EJECT", "CHK_QMIN", "DU2M", "MU2KG", @@ -59,7 +61,7 @@ # This defines Xarray Dataset variables that are strings, which must be processed due to quirks in how NetCDF-Fortran # handles strings differently than Python's Xarray. -string_varnames = ["name", "particle_type", "status", "origin_type", "stage", "regime"] +string_varnames = ["name", "particle_type", "origin_type", "stage", "regime"] char_varnames = ["space"] int_varnames = ["id", "ntp", "npl", "nplm", "discard_body_id", "collision_id", "status"]