Skip to content

Commit 58104f0

Browse files
committed
avoid circular import
1 parent c03e356 commit 58104f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PySDM/attributes/impl/temperature_variation_option_attribute.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
"""common code for attributes offering an option to neglect temperature variation,
22
intended for use with Parcel environment only"""
33

4-
from PySDM.environments import Parcel
5-
64

75
class TemperatureVariationOptionAttribute: # pylint: disable=too-few-public-methods
86
"""base class"""
97

108
def __init__(self, builder, neglect_temperature_variations: bool):
11-
assert isinstance(builder.particulator.environment, Parcel)
9+
assert builder.particulator.environment.__class__.__name__ == "Parcel"
1210
self.neglect_temperature_variations = neglect_temperature_variations
1311
self.initial_temperature = builder.particulator.Storage.from_ndarray(
1412
builder.particulator.environment["T"].to_ndarray()

0 commit comments

Comments
 (0)