Skip to content

Commit

Permalink
#no more shebangs! (getit?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Jan 6, 2025
1 parent 1a01de9 commit ada0dc7
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 25 deletions.
10 changes: 9 additions & 1 deletion fre/analysis/freanalysis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
from analysis_scripts import available_plugins
'''
TODO: add doc-string
'''

# a third party package
import click

# a diff gfdl package
from analysis_scripts import available_plugins

# this package
from .subtools import install_analysis_package, list_plugins, run_analysis, \
uninstall_analysis_package

Expand Down
1 change: 0 additions & 1 deletion fre/app/freapp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
''' fre app calls '''

import time
Expand Down
1 change: 0 additions & 1 deletion fre/app/mask_atmos_plevel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
'''
This script contains the refineDiags that produce data at the same
frequency as the input data (no reduction) such as surface albedo,
Expand Down
1 change: 1 addition & 0 deletions fre/catalog/frecatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'''

import click

#import catalogbuilder
from catalogbuilder.scripts import gen_intake_gfdl
from catalogbuilder.scripts import test_catalog
Expand Down
17 changes: 8 additions & 9 deletions fre/fre.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
be called via this script. I.e. 'fre' is the entry point
"""

#versioning... always fun...
# turn xxxx.y into xxxx.0y
import importlib.metadata

import click
from .lazy_group import LazyGroup



# versioning, turn xxxx.y into xxxx.0y
version_unexpanded = importlib.metadata.version('fre-cli')
version_unexpanded_split = version_unexpanded.split('.')
if len(version_unexpanded_split[1]) == 1:
Expand All @@ -18,13 +23,7 @@
version_minor = version_unexpanded_split[1]
version = version_unexpanded_split[0] + '.' + version_minor





import click
from .lazy_group import LazyGroup

# click and lazy group loading
@click.group(
cls = LazyGroup,
lazy_subcommands = {"pp": ".pp.frepp.pp_cli",
Expand Down
11 changes: 6 additions & 5 deletions fre/make/gfdlfremake/buildBaremetal.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python3
## \date 2023
## \author Tom Robinson
## \email [email protected]
## \description
'''
\date 2023
\author Tom Robinson
\email [email protected]
\description
'''

import subprocess
import os
Expand Down
11 changes: 6 additions & 5 deletions fre/make/gfdlfremake/buildDocker.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/python3
## \date 2023
## \author Tom Robinson
## \email [email protected]
## \description
'''
\date 2023
\author Tom Robinson
\email [email protected]
\description
'''

import os

Expand Down
3 changes: 0 additions & 3 deletions fre/pp/configure_script_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
import yaml
import metomi.rose.config

# Relative import
#f = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
#sys.path.append(f)
import fre.yamltools.combine_yamls as cy

####################
Expand Down

0 comments on commit ada0dc7

Please sign in to comment.