Skip to content

Commit

Permalink
Fixed regression in cdf_to_tplot when only loading a subset of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilburlewis committed Apr 26, 2024
1 parent 7a28f3c commit 066ad3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ netCDF4
pywavelets
astropy
pyspedas
pytplot-mpl-temp>=2.2.22
pytplot-mpl-temp>=2.2.23
geopack>=1.0.9
viresclient
hapiclient
Expand Down
4 changes: 2 additions & 2 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% set name = "pytplot" %}
{% set version = "2.2.22" %}
{% set version = "2.2.23" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
git_url: https://github.com/MAVENSDC/pytplot.git
git_rev: v2.2.22
git_rev: v2.2.23
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
Expand Down
2 changes: 1 addition & 1 deletion pytplot/importers/cdf_to_tplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def cdf_to_tplot(filenames, mastercdf=None, varformat=None, exclude_format=None,

continue

if x_axis_var not in load_cdf_variables:
if x_axis_var not in master_cdf_variables:
logging.warning('Variable %s timestamp variable %s not found, skipping', var, x_axis_var)
continue

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pytplot-mpl-temp
version = 2.2.22
version = 2.2.23
author = MAVEN SDC
author_email = [email protected]
description = A python version of IDL tplot libraries
Expand Down

0 comments on commit 066ad3d

Please sign in to comment.