Skip to content

Commit

Permalink
Fixes the codestyle for Invalid Class Names (#2956)
Browse files Browse the repository at this point in the history
* for test

* Revert "for test"

This reverts commit 55a190d.

* casing convention fixed
  • Loading branch information
Sonu0305 authored Feb 10, 2025
1 parent 304154a commit bbe5154
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/io/grid/how_to_TardisGridTutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"outputs": [],
"source": [
"# Create a tardis grid directly from a dataframe.\n",
"grid.tardisGrid(configFile='example.yml', gridFrame=df)"
"grid.TardisGrid(configFile='example.yml', gridFrame=df)"
]
},
{
Expand All @@ -82,7 +82,7 @@
"outputs": [],
"source": [
"#Create a tardis grid from an axes dict using the classmethod.\n",
"grid.tardisGrid.from_axes(configFile='example.yml', axesdict=axesdict)"
"grid.TardisGrid.from_axes(configFile='example.yml', axesdict=axesdict)"
]
},
{
Expand All @@ -100,7 +100,7 @@
"metadata": {},
"outputs": [],
"source": [
"tg = grid.tardisGrid(configFile='example.yml', gridFrame=df)"
"tg = grid.TardisGrid(configFile='example.yml', gridFrame=df)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tardis/analysis/opacities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger = logging.getLogger(__name__)


class opacity_calculator:
class OpacityCalculator:
"""Basic Tardis opacity and optical depth calculator
Given the model object of a Tardis run and a frequency grid, detailed
Expand Down
2 changes: 1 addition & 1 deletion tardis/grid/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _set_tardis_config_property(tardis_config, key, value):
setattr(tmp_dict, keyitems[-1], value)


class tardisGrid:
class TardisGrid:
"""
A class that stores a grid of TARDIS parameters and
facilitates running large numbers of simulations
Expand Down
4 changes: 2 additions & 2 deletions tardis/grid/tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_grid(atomic_dataset):
}

df = pd.read_csv(dfpath)
g = grid.tardisGrid(configFile=ymlpath, gridFrame=df)
g2 = grid.tardisGrid.from_axes(configFile=ymlpath, axesdict=axesdict)
g = grid.TardisGrid(configFile=ymlpath, gridFrame=df)
g2 = grid.TardisGrid.from_axes(configFile=ymlpath, axesdict=axesdict)

# Check that grid attribute has the right shape
assert g.grid.shape == df.shape
Expand Down

0 comments on commit bbe5154

Please sign in to comment.