Skip to content

Commit

Permalink
Revert maestro 1.1.8 support (#241)
Browse files Browse the repository at this point in the history
* reverted support of Maestro 1.1.8

* removed tests that use maestro validation

* fixed style
  • Loading branch information
ben-bay authored Jul 2, 2020
1 parent dffed56 commit 33b54b3
Show file tree
Hide file tree
Showing 27 changed files with 76 additions and 767 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- Integrated Maestro validation into merlin.
- The sample generation command now logs stdout, stderr, and cmd.sh to merlin_info.
- Add the bank and walltime keywords to the batch slurm launch, these
will not alter the lsf launch.
Expand All @@ -17,7 +16,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Updated to new celery (4.4.5) syntax for signature return codes.
- Corrected prior bugfix.
- Unfroze Maestro version dependency.
- Slightly improved logic by using regex to match variable tokens.

## [1.6.1]
Expand Down
10 changes: 2 additions & 8 deletions merlin/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
###############################################################################

"""Updated celery configuration."""
from __future__ import (
absolute_import,
print_function,
)
from __future__ import absolute_import, print_function

import logging
import os
Expand All @@ -43,10 +40,7 @@
from celery.signals import worker_process_init

import merlin.common.security.encrypt_backend_traffic
from merlin.config import (
broker,
results_backend,
)
from merlin.config import broker, results_backend
from merlin.config.configfile import CONFIG
from merlin.log_formatter import FORMATS
from merlin.router import route_for_task
Expand Down
5 changes: 1 addition & 4 deletions merlin/common/sample_index_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
"""
from parse import parse

from merlin.common.sample_index import (
MAX_SAMPLE,
SampleIndex,
)
from merlin.common.sample_index import MAX_SAMPLE, SampleIndex
from merlin.utils import cd


Expand Down
18 changes: 3 additions & 15 deletions merlin/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,13 @@
###############################################################################

"""Test tasks."""
from __future__ import (
absolute_import,
unicode_literals,
)
from __future__ import absolute_import, unicode_literals

import logging
import os

from celery import (
chain,
chord,
group,
shared_task,
signature,
)
from celery.exceptions import (
OperationalError,
TimeoutError,
)
from celery import chain, chord, group, shared_task, signature
from celery.exceptions import OperationalError, TimeoutError

from merlin.common.abstracts.enums import ReturnCode
from merlin.common.sample_index import uniform_directories
Expand Down
5 changes: 1 addition & 4 deletions merlin/config/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
import os
from os.path import expanduser

from merlin.config.configfile import (
CONFIG,
get_ssl_entries,
)
from merlin.config.configfile import CONFIG, get_ssl_entries


try:
Expand Down
5 changes: 1 addition & 4 deletions merlin/config/results_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
import logging
import os

from merlin.config.configfile import (
CONFIG,
get_ssl_entries,
)
from merlin.config.configfile import CONFIG, get_ssl_entries


try:
Expand Down
5 changes: 1 addition & 4 deletions merlin/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@
from tabulate import tabulate

from merlin.ascii_art import banner_small
from merlin.config import (
broker,
results_backend,
)
from merlin.config import broker, results_backend
from merlin.config.configfile import default_config_info


Expand Down
1 change: 0 additions & 1 deletion merlin/examples/workflows/feature_demo/scripts/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys

import numpy as np

from sklearn.ensemble import RandomForestRegressor


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import argparse
import os
import sys

import matplotlib.pyplot as plt
from concurrent.futures import ProcessPoolExecutor

import matplotlib.pyplot as plt
import pandas as pd


Expand Down
1 change: 0 additions & 1 deletion merlin/examples/workflows/hpc_demo/sample_collector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import argparse
import os
import sys

from concurrent.futures import ProcessPoolExecutor


Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import argparse
import os
import sys

import matplotlib.pyplot as plt
from concurrent.futures import ProcessPoolExecutor

import matplotlib.pyplot as plt
import pandas as pd


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import argparse
import os
import sys

from concurrent.futures import ProcessPoolExecutor


Expand Down
4 changes: 2 additions & 2 deletions merlin/examples/workflows/openfoam_wf/scripts/learn.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import argparse

import matplotlib.pyplot as plt
import numpy as np

from joblib import dump
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_squared_error

import matplotlib.pyplot as plt


descript = """Using parameters to edit OpenFOAM parameters"""
parser = argparse.ArgumentParser(description=descript)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import argparse

import matplotlib.pyplot as plt
import numpy as np

from joblib import dump
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_squared_error

import matplotlib.pyplot as plt


descript = """Using parameters to edit OpenFOAM parameters"""
parser = argparse.ArgumentParser(description=descript)
Expand Down
15 changes: 3 additions & 12 deletions merlin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,11 @@
)
from contextlib import suppress

from merlin import (
VERSION,
router,
)
from merlin import VERSION, router
from merlin.ascii_art import banner_small
from merlin.examples.generator import (
list_examples,
setup_example,
)
from merlin.examples.generator import list_examples, setup_example
from merlin.log_formatter import setup_logging
from merlin.spec.expansion import (
RESERVED,
get_spec_with_expansion,
)
from merlin.spec.expansion import RESERVED, get_spec_with_expansion
from merlin.spec.specification import MerlinSpec
from merlin.study.study import MerlinStudy
from merlin.utils import ARRAY_FILE_FORMATS
Expand Down
5 changes: 0 additions & 5 deletions merlin/spec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,3 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
###############################################################################
import os


dirpath = os.path.dirname(os.path.abspath(__file__))
SCHEMA_PATH = os.path.join(dirpath, "merlin_schemas.json")
15 changes: 3 additions & 12 deletions merlin/spec/expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,12 @@

import logging
from collections import ChainMap
from os.path import (
expanduser,
expandvars,
)
from os.path import expanduser, expandvars

from merlin.common.abstracts.enums import ReturnCode
from merlin.spec.override import (
dump_with_overrides,
error_override_vars,
)
from merlin.spec.override import dump_with_overrides, error_override_vars
from merlin.spec.specification import MerlinSpec
from merlin.utils import (
contains_shell_ref,
contains_token,
)
from merlin.utils import contains_shell_ref, contains_token


MAESTRO_RESERVED = {"SPECROOT", "WORKSPACE", "LAUNCHER"}
Expand Down
145 changes: 0 additions & 145 deletions merlin/spec/schemas/merlinsection.json

This file was deleted.

Loading

0 comments on commit 33b54b3

Please sign in to comment.