Skip to content

Commit

Permalink
chore: SPDX license header in py source files
Browse files Browse the repository at this point in the history
  • Loading branch information
hkershaw-brown committed Feb 1, 2025
1 parent 5719b47 commit 3e65210
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pydartdiags/matplots/matplots.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
from pydartdiags.stats import stats
import matplotlib.pyplot as plt

Expand Down
1 change: 1 addition & 0 deletions src/pydartdiags/obs_sequence/obs_sequence.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
import pandas as pd
import datetime as dt
import numpy as np
Expand Down
4 changes: 2 additions & 2 deletions src/pydartdiags/plots/plots.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# SPDX-License-Identifier: Apache-2.0
import numpy as np
import plotly.express as px
import plotly.graph_objects as go
Expand All @@ -12,7 +12,7 @@ def plot_rank_histogram(df, phase, ens_size):
All histogram bars are initialized to be hidden and can be toggled visible in the plot's legend
"""
fig = px.histogram(df, x=f"{phase}_rank", color='type', title='Histogram Colored by obs type', nbins=ens_size)
fig.update_xaxes(range=[1, ens_size+1])
fig.update_xaxes(range=[1 ens_size+1])
for trace in fig.data:
trace.visible = 'legendonly'
fig.show()
Expand Down
1 change: 1 addition & 0 deletions src/pydartdiags/stats/stats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
import pandas as pd
import numpy as np
from functools import wraps
Expand Down
1 change: 1 addition & 0 deletions tests/test_obs_sequence.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
import os
import pytest
import tempfile
Expand Down
1 change: 1 addition & 0 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
import pytest
from pydartdiags.plots import plots as plts

Expand Down
1 change: 1 addition & 0 deletions tests/test_stats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
import pandas as pd
import numpy as np
import pytest
Expand Down

0 comments on commit 3e65210

Please sign in to comment.