Skip to content

Commit

Permalink
Fix loading pdb without climate info
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhu2e committed Dec 4, 2024
1 parent 3d0832b commit 486a670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cfr/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,8 @@ def from_df(self, df, pid_column='paleoData_pages2kID', lat_column='geo_meanLat'
value_unit=row[value_unit_column] if value_name_column in row else None
if climate_column in row:
climate = row[climate_column]
else:
climate = None

record = ProxyRecord(
pid=pid, lat=lat, lon=lon, elev=elev,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='cfr', # required
version='2024.11.23',
version='2024.12.4',
description='cfr: a Python package for Climate Field Reconstruction',
long_description=long_description,
long_description_content_type='text/x-rst',
Expand Down

0 comments on commit 486a670

Please sign in to comment.