Skip to content

Commit

Permalink
Merge pull request #123 from MouseLand/dev
Browse files Browse the repository at this point in the history
Fix import bug and linter
  • Loading branch information
Atika-Syeda authored Sep 11, 2023
2 parents 4e11b0e + 6e3bc6b commit a29f1ed
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
import os
import sys

sys.path.insert(0, os.path.abspath('.'))

"""
Expand Down
12 changes: 10 additions & 2 deletions facemap/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Copright © 2023 Howard Hughes Medical Institute, Authored by Carsen Stringer and Atika Syeda.
"""
import os
import sys, cv2
import sys
from pathlib import Path

import cv2
import h5py
import matplotlib
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -37,7 +38,14 @@
from scipy.stats import skew, zscore

from facemap import process, roi, utils
from facemap.gui import cluster, guiparts, help_windows, io, menus, neural_activity_window
from facemap.gui import (
cluster,
guiparts,
help_windows,
io,
menus,
neural_activity_window,
)
from facemap.pose import model_loader, pose, pose_gui, refine_pose

istr = ["pupil", "motSVD", "blink", "running", "movSVD"]
Expand Down
18 changes: 9 additions & 9 deletions facemap/gui/neural_activity_window.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import numpy as np
from PyQt5 import QtCore, QtWidgets, QtGui
import os

import matplotlib
import numpy as np
import pyqtgraph as pg
import scipy.io as sio
from facemap.gui import guiparts, help_windows, io
from facemap.neural_prediction import prediction_utils
from PyQt5.QtWidgets import *
from matplotlib import cm
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import Qt, QUrl
from PyQt5.QtWidgets import *

from facemap import utils
import matplotlib
from matplotlib import cm
import pyqtgraph as pg
from PyQt5.QtMultimedia import QMediaPlayer, QMediaContent
from facemap.gui import guiparts, help_windows, io
from facemap.neural_prediction import neural_activity, prediction_utils


Expand Down
2 changes: 1 addition & 1 deletion facemap/pose/refine_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
QSpinBox,
QVBoxLayout,
)
from torch.nn import functional as F

from .. import utils
from ..gui import help_windows, io
from . import model_loader, transforms
from torch.nn import functional as F

"""
Single workflow for re-training the model or fine-tuning the model with new data.
Expand Down

0 comments on commit a29f1ed

Please sign in to comment.