Skip to content

Commit

Permalink
Das 1867 remove tags (#72)
Browse files Browse the repository at this point in the history
* DAS-1867: Remove  tag to avoid failed tests not being communicated.

* DAS-1867: Specify open_datatree function in import.

* DAS-1867: Update version.

---------

Co-authored-by: Josie Lyon <[email protected]>
  • Loading branch information
lyonthefrog and lyonthefrog committed Sep 14, 2023
1 parent d42e944 commit 8fc1088
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
16 changes: 4 additions & 12 deletions test/trajectory-subsetter/TrajectorySubsetter_Regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@
"execution_count": null,
"id": "74bf1567",
"metadata": {
"tags": [
"raises-exception"
]
"tags": []
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -211,9 +209,7 @@
"execution_count": null,
"id": "c51eb82c",
"metadata": {
"tags": [
"raises-exception"
]
"tags": []
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -254,9 +250,7 @@
"execution_count": null,
"id": "ffb9742c",
"metadata": {
"tags": [
"raises-exception"
]
"tags": []
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -294,9 +288,7 @@
"execution_count": null,
"id": "a10d6af4",
"metadata": {
"tags": [
"raises-exception"
]
"tags": []
},
"outputs": [],
"source": [
Expand Down
10 changes: 5 additions & 5 deletions test/trajectory-subsetter/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from harmony import Client, Request
from harmony.harmony import ProcessingFailedException
import datatree
from datatree import open_datatree


def compare_results_to_reference_file(results_file_name: str,
Expand All @@ -17,16 +17,16 @@ def compare_results_to_reference_file(results_file_name: str,
downloaded results to a reference file.
"""
reference_data = datatree.open_datatree(reference_file_name)
results_data = datatree.open_datatree(results_file_name)
reference_data = open_datatree(reference_file_name)
results_data = open_datatree(results_file_name)

assert results_data.identical(reference_data), ('Output and reference files '
'do not match.')

reference_data = None
results_data = None


def submit_and_download(harmony_client: Client, request: Request,
output_file_name: str):
""" Submit a Harmony request via a `harmony-py` client. Wait for the
Expand Down
2 changes: 1 addition & 1 deletion test/trajectory-subsetter/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.4
0.1.5

0 comments on commit 8fc1088

Please sign in to comment.