Skip to content

Commit bcb02a9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 33496e0 commit bcb02a9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

simpeg_drivers/components/factories/directives_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def assemble_data_keywords_potential_fields(
527527
channels = [None]
528528
kwargs = {
529529
"data_type": {
530-
comp: {channel: dtype for channel in channels}
530+
comp: dict.fromkeys(channels, dtype)
531531
for comp, dtype in inversion_object.observed_data_types.items()
532532
},
533533
"transforms": [
@@ -579,7 +579,7 @@ def assemble_data_keywords_dcip(
579579
component = "dc" if is_dc else "ip"
580580
kwargs = {
581581
"data_type": {
582-
comp: {channel: dtype for channel in channels}
582+
comp: dict.fromkeys(channels, dtype)
583583
for comp, dtype in inversion_object.observed_data_types.items()
584584
},
585585
"transforms": [

simpeg_drivers/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def property_group_data(self, property_group: PropertyGroup):
419419
"""
420420
frequencies = self.data_object.channels
421421
if property_group is None:
422-
return {f: None for f in frequencies}
422+
return dict.fromkeys(frequencies)
423423

424424
data = {}
425425
group = next(

0 commit comments

Comments
 (0)