Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature #2772 python_embedding_tmp_file #2807

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/python/met/dataplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def read_dataplane_json_numpy(tmp_filename):
numpy_dump_name = met_base_tools.get_numpy_filename(tmp_filename)
met_dp_data = np.load(numpy_dump_name)
met_info['met_data'] = met_dp_data
if numpy_dump_name != tmp_filename:
met_base_tools.remove_temp_file(numpy_dump_name)
return met_info

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion scripts/python/met/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def read_point_data_json_numpy(self, tmp_filename):
self.obs_qty = point_array_list[11]

if numpy_dump_name != tmp_filename:
os.remove(numpy_dump_name)
met_base_tools.remove_temp_file(numpy_dump_name)

def write_point_data(self, tmp_filename):
if met_base_tools.use_netcdf_format():
Expand Down
Loading