Skip to content

Commit

Permalink
Drop the extraneous files and synchronize
Browse files Browse the repository at this point in the history
removed filenamelist.txt in test folder
removed urlgennwm.py in test folder
added `write_to_file` var
changed function call from `generate_urls` to `generate_urls_operational`
  • Loading branch information
James S. Halgren committed Nov 13, 2023
1 parent 75bb93d commit eda8187
Show file tree
Hide file tree
Showing 34 changed files with 192 additions and 667 deletions.
8 changes: 0 additions & 8 deletions test/filenamelist.txt

This file was deleted.

10 changes: 6 additions & 4 deletions test/test_analysisAssim.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim(self):
def test_generate_urls_operational_for_analysis_assim(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim(self):
runinput = 5 # Set to 5 for the analysis_assim folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimExtend.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_extend(self):
def test_generate_urls_operational_for_analysis_assim_extend(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_extend(self):
runinput = 6 # Set to 6 for the analysis_assim_extend folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_extend(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimExtendNoDa.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_extend_no_da(self):
def test_generate_urls_operational_for_analysis_assim_extend_no_da(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_extend_no_da(self):
runinput = 7 # Set to 7 for the assim_extend_no_da folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_extend_no_da(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimHawaii.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_hawaii(self):
def test_generate_urls_operational_for_analysis_assim_hawaii(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_hawaii(self):
runinput = 5 # Set to 5 for the analysis_assim_hawaii folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_hawaii(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimHawaiiNoDa.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_hawaii_no_da(self):
def test_generate_urls_operational_for_analysis_assim_hawaii_no_da(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_hawaii_no_da(self):
runinput = 10 # Set to 10 for the analysis_assim_hawaii_no_da folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_hawaii_no_da(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimNoDa.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_no_da(self):
def test_generate_urls_operational_for_analysis_assim_no_da(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_no_da(self):
runinput = 10 # Set to 5 for the analysis_assim_no_da folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_no_da(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimPuertorico.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_puertorico(self):
def test_generate_urls_operational_for_analysis_assim_puertorico(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_puertorico(self):
runinput = 5 # Set to 5 for the analysis_assim_puertorico folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_puertorico(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_analysisAssimPuertoricoNoDa.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_analysis_assim_puertorico_no_da(self):
def test_generate_urls_operational_for_analysis_assim_puertorico_no_da(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_analysis_assim_puertorico_no_da(self):
runinput = 10 # Set to 10 for the analysis_assim_puertorico_no_da folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_analysis_assim_puertorico_no_da(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_forcingAnalysisAssim.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_forcing_analysis_assim(self):
def test_generate_urls_operational_for_forcing_analysis_assim(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_forcing_analysis_assim(self):
runinput = 5 # Set to 5 for the forcing_analysis_assim folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_forcing_analysis_assim(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
10 changes: 6 additions & 4 deletions test/test_forcingAnalysisAssimExtend.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import unittest
from urlgennwm import (
generate_urls,
) # Import the generate_urls function from your script
generate_urls_operational,
) # Import the generate_urls_operational function from your script


class TestGenerateURLs(unittest.TestCase):
def test_generate_urls_for_forcing_analysis_assim_extend(self):
def test_generate_urls_operational_for_forcing_analysis_assim_extend(self):
# Define test input values
start_date = "202201120000"
end_date = "202201130000"
Expand All @@ -17,9 +17,10 @@ def test_generate_urls_for_forcing_analysis_assim_extend(self):
runinput = 6 # Set to 6 for the forcing_analysis_assim_extend folder
urlbaseinput = 2
meminput = 1
write_to_file = True

# Call the function to generate URLs
generate_urls(
generate_urls_operational(
start_date,
end_date,
fcst_cycle,
Expand All @@ -29,6 +30,7 @@ def test_generate_urls_for_forcing_analysis_assim_extend(self):
runinput,
urlbaseinput,
meminput,
write_to_file,
)

# Check if the generated 'filenamelist.txt' file exists
Expand Down
Loading

0 comments on commit eda8187

Please sign in to comment.