Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed Nov 30, 2023
1 parent e7d91c6 commit 5b2a026
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions MARBLE/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@
import warnings
from datetime import datetime
from pathlib import Path
import yaml
from tqdm import tqdm

import torch
import torch.nn.functional as F
import torch.optim as opt
import yaml
from torch import nn
from torch_geometric.nn import MLP
from tqdm import tqdm

from MARBLE import dataloader, geometry, layers, utils
from MARBLE import dataloader
from MARBLE import geometry
from MARBLE import layers
from MARBLE import utils


class net(nn.Module):
Expand Down
3 changes: 2 additions & 1 deletion MARBLE/plotting.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Plotting module."""
import os
from pathlib import Path
import torch

import matplotlib
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import seaborn as sns
import torch
from matplotlib import gridspec
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.patches import FancyArrowPatch
Expand Down
4 changes: 2 additions & 2 deletions MARBLE/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _compute_geometric_objects(
gauges (nxdxd): local gauges at all points
par (dict): updated dictionary of parameters
local_gauges: whether to use local gauges
"""
n, dim_emb = data.pos.shape
dim_signal = data.x.shape[1]
Expand Down Expand Up @@ -184,4 +184,4 @@ def _compute_geometric_objects(
]
data.L, data.Lc, data.gauges, data.local_gauges = L, Lc, gauges, local_gauges

return data
return data

0 comments on commit 5b2a026

Please sign in to comment.