From cdf649e50ab13e3b7cea791e077ef9ca60d46dfc Mon Sep 17 00:00:00 2001 From: craig-warren Date: Tue, 12 May 2020 12:33:37 +0100 Subject: [PATCH] Added rotate method. --- gprMax/cmds_multiple.py | 5 ++++- gprMax/cmds_single_use.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gprMax/cmds_multiple.py b/gprMax/cmds_multiple.py index e988091f..ff239bcb 100644 --- a/gprMax/cmds_multiple.py +++ b/gprMax/cmds_multiple.py @@ -63,6 +63,9 @@ class UserObjectMulti: """Create the object and add it to the grid.""" pass + def rotate(self, axis, angle): + pass + def params_str(self): """Readble string of parameters given to object.""" return self.hash + ': ' + str(self.kwargs) @@ -549,7 +552,7 @@ class Rx(UserObjectMulti): try: r.ID = self.kwargs['id'] - outputs = [self.kwargs['outputs']] + outputs = self.kwargs['outputs'] except KeyError: # If no ID or outputs are specified, use default r.ID = r.__class__.__name__ + '(' + str(r.xcoord) + ',' + str(r.ycoord) + ',' + str(r.zcoord) + ')' diff --git a/gprMax/cmds_single_use.py b/gprMax/cmds_single_use.py index a88d2373..7ff05f9d 100644 --- a/gprMax/cmds_single_use.py +++ b/gprMax/cmds_single_use.py @@ -55,6 +55,9 @@ class UserObjectSingle: def create(self, grid, uip): pass + def rotate(self, axis, angle): + pass + class Title(UserObjectSingle): """Allows you to include a title for your model.