From e13ee9eab503858d197960edb6c86a55956690eb Mon Sep 17 00:00:00 2001 From: Zhang Date: Thu, 6 Nov 2025 16:16:44 -0800 Subject: [PATCH 1/8] modified utils.format_string() to add fortrantype for D --- ios_shell/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios_shell/utils.py b/ios_shell/utils.py index 685841f..40dec4a 100644 --- a/ios_shell/utils.py +++ b/ios_shell/utils.py @@ -50,6 +50,11 @@ def format_string(format: str, kind: str, width: int, decimals: int) -> str: return f"A{len(fortrantype)+1}" elif fortrantype in ["' '", "NQ"]: return f"A{width}" + elif fortrantype in ["D"]: + if datatype in ["I"]: + return f"I{width}" + else: + return f"D{width}.{decimals}" else: return fortrantype From ed3cd0168a0ebb3de2495be0913a3e972aedfef0 Mon Sep 17 00:00:00 2001 From: Zhang Date: Fri, 14 Nov 2025 16:03:11 -0800 Subject: [PATCH 2/8] changed numpy version --- .idea/inspectionProfiles/Project_Default.xml | 22 +++++++++ .../inspectionProfiles/profiles_settings.xml | 6 +++ .idea/ios-shell.iml | 12 +++++ .idea/misc.xml | 4 ++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 +++ .idea/workspace.xml | 49 +++++++++++++++++++ pyproject.toml | 2 + 8 files changed, 109 insertions(+) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/ios-shell.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..7c27867 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,22 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/ios-shell.iml b/.idea/ios-shell.iml new file mode 100644 index 0000000..beb5060 --- /dev/null +++ b/.idea/ios-shell.iml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..c3e9423 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..cd7de99 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..0a24e95 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 1763164730975 + + + + \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7c07e02..2ea43d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,8 @@ include = [ python = ">=3.8,<3.11" fortranformat = "^1.0.1" pandas = {version = "^1.4.2", optional = true} +numpy = "<2.0" + [tool.poetry.dev-dependencies] pytest = "^6.2.5" From 2540feb1b3c70d8eb16fbc93c6b1d132be81a6d4 Mon Sep 17 00:00:00 2001 From: Zhang Date: Fri, 14 Nov 2025 16:08:44 -0800 Subject: [PATCH 3/8] update numpy version in .toml --- .idea/workspace.xml | 21 +++++++++++---------- pyproject.toml | 1 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0a24e95..3ec8293 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,6 +2,7 @@ +