From 00f9dd38c266051ae2149b336446b7c3c494f06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sat, 4 Apr 2026 19:17:33 +0200 Subject: [PATCH] RFC: cleanup a couple remnants Python 2 idioms --- dsharp_opac/dsharp_opac.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dsharp_opac/dsharp_opac.py b/dsharp_opac/dsharp_opac.py index 9becb6a..7931911 100755 --- a/dsharp_opac/dsharp_opac.py +++ b/dsharp_opac/dsharp_opac.py @@ -5,7 +5,6 @@ - dielectric functions are objects, see bhmie.diel_* the functions `diel_*.nk` return the optical properties """ -from __future__ import print_function import numpy as np import os import sys @@ -219,7 +218,7 @@ def download(packagedir): raise ex -class diel_const(object): +class diel_const: """ Abstract class for dielectric constants objects """ @@ -1355,7 +1354,7 @@ def fct(x, a, b, c): self.print_reference(', or the specific reference for that species') -class diel_mixed(): +class diel_mixed: """ This is a dielectric_constant class that mixes the various dielectric constants given their abundances.