Skip to content

Commit

Permalink
fix job config section (#2063)
Browse files Browse the repository at this point in the history
* fix job config section

* fix unused imports
  • Loading branch information
yanchengnv authored Oct 6, 2023
1 parent 55bbdf8 commit 44dd15f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion nvflare/apis/fl_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ class SiteType:
class SystemConfigs:
STARTUP_CONF = "start_config"
RESOURCES_CONF = "resources_config"
APPLICATION_CONF = "application_config"


class SecureTrainConst:
Expand Down
4 changes: 1 addition & 3 deletions nvflare/private/fed/client/client_json_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import re

from nvflare.apis.executor import Executor
from nvflare.apis.fl_component import FLComponent
from nvflare.apis.fl_constant import SystemConfigs
from nvflare.fuel.utils.argument_utils import parse_vars
from nvflare.fuel.utils.config_service import ConfigService
from nvflare.fuel.utils.json_scanner import Node
Expand Down Expand Up @@ -142,7 +140,7 @@ def finalize_config(self, config_ctx: ConfigContext):
)

ConfigService.initialize(
section_files={SystemConfigs.APPLICATION_CONF: os.path.basename(self.config_files[0])},
section_files={},
config_path=[self.args.workspace],
parsed_args=self.args,
var_dict=self.cmd_vars,
Expand Down
4 changes: 1 addition & 3 deletions nvflare/private/fed/server/server_json_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import re

from nvflare.apis.fl_component import FLComponent
from nvflare.apis.fl_constant import SystemConfigs
from nvflare.apis.responder import Responder
from nvflare.fuel.utils.argument_utils import parse_vars
from nvflare.fuel.utils.config_service import ConfigService
Expand Down Expand Up @@ -161,7 +159,7 @@ def finalize_config(self, config_ctx: ConfigContext):
)

ConfigService.initialize(
section_files={SystemConfigs.APPLICATION_CONF: os.path.basename(self.config_files[0])},
section_files={},
config_path=[self.args.workspace],
parsed_args=self.args,
var_dict=self.cmd_vars,
Expand Down

0 comments on commit 44dd15f

Please sign in to comment.