Skip to content

Commit d294e3a

Browse files
Merge branch 'NREL:main' into main
2 parents 25553d4 + becec79 commit d294e3a

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

CONTRIBUTING.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,17 @@ Strongly recommended: use a Python IDE such as `PyCharm <https://www.jetbrains.c
5050
If you are using PyCharm, first open the the cloned repo by going to File → Open and selecting your ``GEOPHIRES-X`` directory (from the previous steps).
5151
Run commands in a terminal with View → Tool Windows → Terminal
5252

53-
1. `Install virtualenv <https://virtualenv.pypa.io/en/latest/installation.html#via-pip>`__ if you don't have it already. Then set up and activate a virtual environment for the project::
53+
1. `Install virtualenv <https://virtualenv.pypa.io/en/latest/installation.html#via-pip>`__ if you don't have it already. Then set up and activate a virtual environment for the project:
5454

55-
python -m venv venv
56-
source venv/bin/activate
55+
- Windows::
56+
57+
python -m venv venv
58+
venv\Scripts\activate
59+
60+
- macOS/Linux::
61+
62+
python -m venv venv
63+
source venv/bin/activate
5764

5865
(If you are using PyCharm, it may prompt you to set up the virtual environment automatically, allowing you to skip this step on the command line)
5966

tests/geophires_x_client_tests/test_geophires_input_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import uuid
33
from pathlib import Path
44

5-
from base_test_case import BaseTestCase
65
from geophires_x_client import GeophiresInputParameters
6+
from tests.base_test_case import BaseTestCase
77

88

99
class GeophiresInputParametersTestCase(BaseTestCase):

tests/geophires_x_tests/test_cylindrical_reservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import unittest
33
from pathlib import Path
44

5-
from base_test_case import BaseTestCase
5+
from tests.base_test_case import BaseTestCase
66

77
# Ruff disabled because imports are order-dependent
88
# ruff: noqa: I001

tests/geophires_x_tests/test_reservoir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from pint.facets.plain import PlainQuantity
66

7-
from base_test_case import BaseTestCase
87
from geophires_x.GeoPHIRESUtils import static_pressure_MPa
98
from geophires_x.Model import Model
109
from geophires_x.Reservoir import Reservoir
10+
from tests.base_test_case import BaseTestCase
1111

1212

1313
class ReservoirTestCase(BaseTestCase):

tests/test_base_test_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
from base_test_case import BaseTestCase
3+
from tests.base_test_case import BaseTestCase
44

55

66
class TestBaseTestCase(BaseTestCase):

tests/test_parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import unittest
44
from pathlib import Path
55

6-
from base_test_case import BaseTestCase
76
from geophires_x.Model import Model
87
from geophires_x.Parameter import OutputParameter
98
from geophires_x.Parameter import Parameter
@@ -14,6 +13,7 @@
1413
from geophires_x.Units import LengthUnit
1514
from geophires_x.Units import PressureUnit
1615
from geophires_x.Units import Units
16+
from tests.base_test_case import BaseTestCase
1717

1818

1919
class ParameterTestCase(BaseTestCase):

0 commit comments

Comments
 (0)