Skip to content

Commit

Permalink
Final Final Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anamanica committed Jun 24, 2024
1 parent 229f75c commit 951d0dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions imap_processing/cdf/imap_cdf_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ImapCdfAttributes(CdfAttributeManager):
Parameters
----------
source_dir : Path
Source directory.
source_dir : Path or None
Source directory.
"""

def __init__(self, source_dir=None):
Expand All @@ -26,7 +26,7 @@ def __init__(self, source_dir=None):
Parameters
----------
source_dir
source_dir : Path or None
Source directory.
"""
if source_dir is None:
Expand Down
6 changes: 2 additions & 4 deletions imap_processing/cdf/tests/test_imap_cdf_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
# from imap_processing.cdf.cdf_attribute_manager import CdfAttributeManager
from imap_processing.cdf.imap_cdf_manager import ImapCdfAttributes

# Test


def test_add_instrument_global_attrs():
# Create an ImapCdfAttributes object, set to correct file path
imap_cdf_manager = ImapCdfAttributes()
imap_cdf_manager.source_dir = Path(__file__).parent.parent / "tests"
imap_cdf_manager.add_instrument_global_attrs("instrument")
imap_cdf_manager.add_instrument_global_attrs("instrument1")

# Testing data loaded in
imap_instrument = imap_cdf_manager.get_global_attributes("imap_test_T1_test")
Expand Down Expand Up @@ -38,7 +36,7 @@ def test_add_instrument_variable_attrs():
# Create an ImapCdfAttributes object
imap_cdf_manager = ImapCdfAttributes()
imap_cdf_manager.source_dir = Path(__file__).parent.parent / "tests"
imap_cdf_manager.add_instrument_variable_attrs("instrument", "level")
imap_cdf_manager.add_instrument_variable_attrs("instrument1", "level1")

# Testing the actual function
imap_instrument = imap_cdf_manager.get_variable_attributes("test_field_1")
Expand Down

0 comments on commit 951d0dc

Please sign in to comment.