pycontrails 0.49.4__cp312-cp312-macosx_11_0_arm64.whl → 0.49.5__cp312-cp312-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pycontrails might be problematic. Click here for more details.

pycontrails/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.49.4'
16
- __version_tuple__ = version_tuple = (0, 49, 4)
15
+ __version__ = version = '0.49.5'
16
+ __version_tuple__ = version_tuple = (0, 49, 5)
@@ -1457,6 +1457,10 @@ def _process_rad(rad: MetDataset) -> MetDataset:
1457
1457
  # Keep the original attrs -- we need these later on
1458
1458
  old_attrs = {k: v.attrs for k, v in rad.data.items()}
1459
1459
 
1460
+ # Also need to keep dataset-level attrs, which are lost
1461
+ # when dividing a Dataset by a DataArray
1462
+ old_rad_attrs = rad.data.attrs
1463
+
1460
1464
  # NOTE: Taking the diff will remove the first time step
1461
1465
  # This is typically what we want (forecast step 0 is all zeros)
1462
1466
  # But, if the data has been downselected for a particular Flight / Fleet,
@@ -1468,6 +1472,7 @@ def _process_rad(rad: MetDataset) -> MetDataset:
1468
1472
  # accumulations by number of hours between steps
1469
1473
  time_diff_h = time_diff / np.timedelta64(1, "h")
1470
1474
  rad.data = rad.data.diff("time", label="upper") / time_diff_h
1475
+ rad.data.attrs = old_rad_attrs
1471
1476
 
1472
1477
  # Add back the original attrs
1473
1478
  for k, v in rad.data.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycontrails
3
- Version: 0.49.4
3
+ Version: 0.49.5
4
4
  Summary: Python library for modeling aviation climate impacts
5
5
  Author-email: Breakthrough Energy <py@contrails.org>
6
6
  License: Apache-2.0
@@ -1,10 +1,10 @@
1
- pycontrails-0.49.4.dist-info/RECORD,,
2
- pycontrails-0.49.4.dist-info/LICENSE,sha256=gJ-h7SFFD1mCfR6a7HILvEtodDT6Iig8bLXdgqR6ucA,10175
3
- pycontrails-0.49.4.dist-info/WHEEL,sha256=VdDmD53Z5Im3s3DzMnDRXVcjZVnzMxiqEPFSmUQBX3s,110
4
- pycontrails-0.49.4.dist-info/NOTICE,sha256=gKI8DcN1WhiXB2SFRKDogcjONldGubTvBxiOYdC4CXU,1926
5
- pycontrails-0.49.4.dist-info/top_level.txt,sha256=Z8J1R_AiBAyCVjNw6jYLdrA68PrQqTg0t3_Yek_IZ0Q,29
6
- pycontrails-0.49.4.dist-info/METADATA,sha256=n-J8TY1M7WzQ1uCUblcCF7OAyDj3oZqPQx96OtAP88w,8270
7
- pycontrails/_version.py,sha256=SeR_6AxSb480s47Zz4l0pYzoEyfAhqZXSbRreai7m8s,413
1
+ pycontrails-0.49.5.dist-info/RECORD,,
2
+ pycontrails-0.49.5.dist-info/LICENSE,sha256=gJ-h7SFFD1mCfR6a7HILvEtodDT6Iig8bLXdgqR6ucA,10175
3
+ pycontrails-0.49.5.dist-info/WHEEL,sha256=VdDmD53Z5Im3s3DzMnDRXVcjZVnzMxiqEPFSmUQBX3s,110
4
+ pycontrails-0.49.5.dist-info/NOTICE,sha256=gKI8DcN1WhiXB2SFRKDogcjONldGubTvBxiOYdC4CXU,1926
5
+ pycontrails-0.49.5.dist-info/top_level.txt,sha256=Z8J1R_AiBAyCVjNw6jYLdrA68PrQqTg0t3_Yek_IZ0Q,29
6
+ pycontrails-0.49.5.dist-info/METADATA,sha256=rDzd21VDquxdBt5vofTqKPe8mJyZi4xdAVMSnjBku18,8270
7
+ pycontrails/_version.py,sha256=nH-3YHqHjzaEFGxsYlRP1yKzx4o1iBZGXleKwGLmKPg,413
8
8
  pycontrails/__init__.py,sha256=c_Vtz7CvdiVAL8ggluash9-8tGcLO_5Vvu-3_Ie47CE,1985
9
9
  pycontrails/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  pycontrails/core/vector.py,sha256=oAuPxKo2okFgrWZaZuBRzxyKdJ8TtsyNJf1NWoSDKfc,71672
@@ -22,7 +22,7 @@ pycontrails/core/met.py,sha256=V2iHV2NZftWU5hBSWJ3Da26j27IC4j-3WbydtPS_DdY,92497
22
22
  pycontrails/core/aircraft_performance.py,sha256=4yNGfArt741HNFjxpWvEu86BTzie9LaPjC4KH3dXYts,21966
23
23
  pycontrails/core/airports.py,sha256=aeyAXVkioIRomrP79UtNrxindL4f1DJyXFaojZCuBBw,6758
24
24
  pycontrails/core/met_var.py,sha256=zyXWI_9dRS4FfH1Io_k0YcIxZIsp8y4YPiC_Oayi_gs,9195
25
- pycontrails/core/rgi_cython.cpython-312-darwin.so,sha256=58yNsuszl43MEUqU0AFY7zuIYWGdtKYYzVfgjTUxRZ0,317789
25
+ pycontrails/core/rgi_cython.cpython-312-darwin.so,sha256=FNLQfFwFi_CwTOzHcBOeMIkiH2woBFgn0Bqfn4htEAA,317789
26
26
  pycontrails/core/coordinates.py,sha256=vVITA90x0Jx-UQG2XMm3JAKKsIrFUcU861xV-L9czTI,5291
27
27
  pycontrails/datalib/goes.py,sha256=kNBokaIvdTaeCnAyf9dnWAegkBDVuWW9_9Rzt2RvtxY,26169
28
28
  pycontrails/datalib/__init__.py,sha256=s5b8W6scXgespKZjPcaC-8jyLd3FqZqN0BZccLxaGuE,237
@@ -67,7 +67,7 @@ pycontrails/models/humidity_scaling/__init__.py,sha256=nqsab_j9BCwMbTfCn4BjXMdhI
67
67
  pycontrails/models/humidity_scaling/quantiles/era5-quantiles.pq,sha256=tfYhbafF9Z-gGCg6VQ1YBlOaK_01e65Dc6s9b-hQ6Zo,286375
68
68
  pycontrails/models/cocip/radiative_forcing.py,sha256=ERuFcYMo0_1iiOricnZ8D4ext23bMnTCeZwg9vd6Vzs,44944
69
69
  pycontrails/models/cocip/wind_shear.py,sha256=p8d3iaNzxPA3MoxFEM1ZDKt0aticoD6U9cv0QmbuBzs,3860
70
- pycontrails/models/cocip/cocip.py,sha256=f0MsToAm6jEYmX2Je_qcmrIc3wFzgWcFW-KCi0Jj3kc,95608
70
+ pycontrails/models/cocip/cocip.py,sha256=X4b_samWXtG5jD83W6vrlrc4MR-8SyG_uhSdhz55pD4,95816
71
71
  pycontrails/models/cocip/output_formats.py,sha256=d9naGliEEVuk2ER0KZEY5R2FHQZIY5NcP6PamlHcBM0,77149
72
72
  pycontrails/models/cocip/__init__.py,sha256=7Wy_CnmVqg_Gpg2UhIlisJOJ3naL6c5BBzTSJqdbiM4,902
73
73
  pycontrails/models/cocip/cocip_params.py,sha256=sc3j0nUHIdXXGEhnqRFGZEohEVPBu0UMSef1BMRiU1g,10302