Skip to content

Commit e02e767

Browse files
committed
Deal with multiline string
1 parent bca1a97 commit e02e767

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stglib/eofe.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,10 @@ def calc_cor_brange(ds):
448448
soundspd = gsw.sound_speed(ds.attrs["average_salinity"], ds.Temperature_C, p)
449449
ds["brange"] = xr.DataArray(time_sec * soundspd).round(3) # round brange to mm
450450

451-
histtext = f"Adjusted sound velocity calculated using sound_speed(s,t,p) from gsw toolbox (https://teos-10.github.io/GSW-Python/). Inputs: Salinity (s) from average salinity of {
452-
ds.attrs['average_salinity']} PSU, temperature (t) from ea400 internal temperature measurements, pressure (p) from instrument depth {math_sign} median(altitude)/2. "
451+
histtext = (
452+
f"Adjusted sound velocity calculated using sound_speed(s,t,p) from gsw toolbox (https://teos-10.github.io/GSW-Python/). Inputs: Salinity (s) from average salinity of "
453+
f"{ds.attrs['average_salinity']} PSU, temperature (t) from ea400 internal temperature measurements, pressure (p) from instrument depth {math_sign} median(altitude)/2. "
454+
)
453455

454456
ds = utils.insert_history(ds, histtext)
455457

0 commit comments

Comments
 (0)