Skip to content

Commit fd634d4

Browse files
jgray-19Copilot
andauthored
Update src/pymadng/madp_pymad.py
Co-authored-by: Copilot <[email protected]>
1 parent eba9706 commit fd634d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pymadng/madp_pymad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def protected_variable_retrieval(self, name: str, shallow_copy: bool = False) ->
224224
Returns:
225225
The value of the variable.
226226
"""
227-
shallow_copy = "true" if shallow_copy else "false"
227+
shallow_copy = str(shallow_copy).lower()
228228
if self.raise_on_madng_error:
229229
return self.send(f"py:send({name}, {shallow_copy})").recv(name)
230230
self.send(

0 commit comments

Comments
 (0)